#[non_exhaustive]pub struct EventFormatRules {
pub require_event_id: bool,
pub require_room_create_room_id: bool,
pub allow_room_create_in_auth_events: bool,
}
Expand description
The tweaks for verifying the event format for a room version.
This type can be constructed from one of its constants (like EventFormatRules::V1
), or by
constructing a RoomVersionRules
first and using the event_format
field.
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.require_event_id: bool
Whether the event_id
field is required, disabled since room version 3.
require_room_create_room_id: bool
Whether the room_id
field is required on the m.room.create
event, disabled since room
version 12.
allow_room_create_in_auth_events: bool
Whether the m.room.create
event is allowed to be in the auth_events
, disabled since
room version 12.
Implementations§
Trait Implementations§
Source§impl Clone for EventFormatRules
impl Clone for EventFormatRules
Source§fn clone(&self) -> EventFormatRules
fn clone(&self) -> EventFormatRules
Returns a duplicate 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 EventFormatRules
impl RefUnwindSafe for EventFormatRules
impl Send for EventFormatRules
impl Sync for EventFormatRules
impl Unpin for EventFormatRules
impl UnwindSafe for EventFormatRules
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