#[non_exhaustive]pub struct RoomVersionRules {
pub disposition: RoomVersionDisposition,
pub event_id_format: EventIdFormatVersion,
pub state_res: StateResolutionVersion,
pub enforce_key_validity: bool,
pub authorization: AuthorizationRules,
pub redaction: RedactionRules,
pub signatures: SignaturesRules,
}
Expand description
The rules applied to a room version.
This type can be constructed from one of its constants (like RoomVersionRules::V1
), or from
RoomVersionId::rules()
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.disposition: RoomVersionDisposition
The stability of the room version.
event_id_format: EventIdFormatVersion
The format of event IDs.
state_res: StateResolutionVersion
The state resolution algorithm used.
enforce_key_validity: bool
Whether to enforce the key validity period when verifying signatures (spec), introduced in room version 5.
The tweaks in the authorization rules.
redaction: RedactionRules
The tweaks in the redaction algorithm.
signatures: SignaturesRules
The tweaks for verifying signatures.
Implementations§
Source§impl RoomVersionRules
impl RoomVersionRules
Sourcepub const V1: Self
pub const V1: Self
Rules for room version 1.
Sourcepub const V2: Self
pub const V2: Self
Rules for room version 2.
Sourcepub const V3: Self
pub const V3: Self
Rules for room version 3.
Sourcepub const V4: Self
pub const V4: Self
Rules for room version 4.
Sourcepub const V5: Self
pub const V5: Self
Rules for room version 5.
Sourcepub const V6: Self
pub const V6: Self
Rules for room version 6.
Sourcepub const V7: Self
pub const V7: Self
Rules for room version 7.
Sourcepub const V8: Self
pub const V8: Self
Rules for room version 8.
Sourcepub const V9: Self
pub const V9: Self
Rules for room version 9.
Sourcepub const V10: Self
pub const V10: Self
Rules for room version 10.
Sourcepub const V11: Self
pub const V11: Self
Rules for room version 11.
Trait Implementations§
Source§impl Clone for RoomVersionRules
impl Clone for RoomVersionRules
Source§fn clone(&self) -> RoomVersionRules
fn clone(&self) -> RoomVersionRules
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RoomVersionRules
impl RefUnwindSafe for RoomVersionRules
impl Send for RoomVersionRules
impl Sync for RoomVersionRules
impl Unpin for RoomVersionRules
impl UnwindSafe for RoomVersionRules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more