#[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
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: RoomVersionRules
Available on crate feature events
only.
pub const V1: RoomVersionRules
events
only.Rules for room version 1.
Sourcepub const V2: RoomVersionRules
Available on crate feature events
only.
pub const V2: RoomVersionRules
events
only.Rules for room version 2.
Sourcepub const V3: RoomVersionRules
Available on crate feature events
only.
pub const V3: RoomVersionRules
events
only.Rules for room version 3.
Sourcepub const V4: RoomVersionRules
Available on crate feature events
only.
pub const V4: RoomVersionRules
events
only.Rules for room version 4.
Sourcepub const V5: RoomVersionRules
Available on crate feature events
only.
pub const V5: RoomVersionRules
events
only.Rules for room version 5.
Sourcepub const V6: RoomVersionRules
Available on crate feature events
only.
pub const V6: RoomVersionRules
events
only.Rules for room version 6.
Sourcepub const V7: RoomVersionRules
Available on crate feature events
only.
pub const V7: RoomVersionRules
events
only.Rules for room version 7.
Sourcepub const V8: RoomVersionRules
Available on crate feature events
only.
pub const V8: RoomVersionRules
events
only.Rules for room version 8.
Sourcepub const V9: RoomVersionRules
Available on crate feature events
only.
pub const V9: RoomVersionRules
events
only.Rules for room version 9.
Sourcepub const V10: RoomVersionRules
Available on crate feature events
only.
pub const V10: RoomVersionRules
events
only.Rules for room version 10.
Sourcepub const V11: RoomVersionRules
Available on crate feature events
only.
pub const V11: RoomVersionRules
events
only.Rules for room version 11.
Sourcepub const MSC2870: RoomVersionRules
Available on crate features events
and unstable-msc2870
only.
pub const MSC2870: RoomVersionRules
events
and unstable-msc2870
only.Rules for room version org.matrix.msc2870
(MSC2870).
Trait Implementations§
Source§impl Clone for RoomVersionRules
impl Clone for RoomVersionRules
Source§fn clone(&self) -> RoomVersionRules
fn clone(&self) -> RoomVersionRules
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more