#[non_exhaustive]pub struct UnstableInvitePermissionConfigEventContent {
pub block_all: bool,
}Expand description
The content of an org.matrix.msc4380.invite_permission_config account data, the
unstable version of InvitePermissionConfigEventContent.
Controls whether invites to this account are permitted.
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.block_all: boolWhen set to true, indicates that the user does not wish to receive any room invites, and they should be blocked.
Implementations§
Trait Implementations§
Source§impl Clone for UnstableInvitePermissionConfigEventContent
impl Clone for UnstableInvitePermissionConfigEventContent
Source§fn clone(&self) -> UnstableInvitePermissionConfigEventContent
fn clone(&self) -> UnstableInvitePermissionConfigEventContent
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 moreSource§impl Default for UnstableInvitePermissionConfigEventContent
impl Default for UnstableInvitePermissionConfigEventContent
Source§fn default() -> UnstableInvitePermissionConfigEventContent
fn default() -> UnstableInvitePermissionConfigEventContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnstableInvitePermissionConfigEventContent
impl<'de> Deserialize<'de> for UnstableInvitePermissionConfigEventContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InvitePermissionConfigEventContent> for UnstableInvitePermissionConfigEventContent
Available on crate feature unstable-msc4380 only.
impl From<InvitePermissionConfigEventContent> for UnstableInvitePermissionConfigEventContent
Available on crate feature
unstable-msc4380 only.Source§fn from(value: InvitePermissionConfigEventContent) -> Self
fn from(value: InvitePermissionConfigEventContent) -> Self
Converts to this type from the input type.
Source§impl From<UnstableInvitePermissionConfigEventContent> for AnyGlobalAccountDataEventContent
Available on crate feature unstable-msc4380 only.
impl From<UnstableInvitePermissionConfigEventContent> for AnyGlobalAccountDataEventContent
Available on crate feature
unstable-msc4380 only.Source§fn from(c: UnstableInvitePermissionConfigEventContent) -> Self
fn from(c: UnstableInvitePermissionConfigEventContent) -> Self
Converts to this type from the input type.
Source§impl From<UnstableInvitePermissionConfigEventContent> for InvitePermissionConfigEventContent
Available on crate feature unstable-msc4380 only.
impl From<UnstableInvitePermissionConfigEventContent> for InvitePermissionConfigEventContent
Available on crate feature
unstable-msc4380 only.Source§fn from(value: UnstableInvitePermissionConfigEventContent) -> Self
fn from(value: UnstableInvitePermissionConfigEventContent) -> Self
Converts to this type from the input type.
Source§impl GlobalAccountDataEventContent for UnstableInvitePermissionConfigEventContent
impl GlobalAccountDataEventContent for UnstableInvitePermissionConfigEventContent
Source§fn event_type(&self) -> GlobalAccountDataEventType
fn event_type(&self) -> GlobalAccountDataEventType
Get the event’s type, like
m.push_rules.impl JsonCastable<AnyGlobalAccountDataEventContent> for UnstableInvitePermissionConfigEventContent
Available on crate feature
unstable-msc4380 only.impl JsonCastable<Map<String, Value>> for UnstableInvitePermissionConfigEventContent
Auto Trait Implementations§
impl Freeze for UnstableInvitePermissionConfigEventContent
impl RefUnwindSafe for UnstableInvitePermissionConfigEventContent
impl Send for UnstableInvitePermissionConfigEventContent
impl Sync for UnstableInvitePermissionConfigEventContent
impl Unpin for UnstableInvitePermissionConfigEventContent
impl UnwindSafe for UnstableInvitePermissionConfigEventContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more