#[non_exhaustive]pub enum AnyGlobalAccountDataEvent {
Show 14 variants
Direct(GlobalAccountDataEvent<DirectEventContent>),
DoNotDisturb(GlobalAccountDataEvent<DoNotDisturbEventContent>),
IdentityServer(GlobalAccountDataEvent<IdentityServerEventContent>),
InvitePermissionConfig(GlobalAccountDataEvent<InvitePermissionConfigEventContent>),
UnstableInvitePermissionConfig(GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>),
IgnoredUserList(GlobalAccountDataEvent<IgnoredUserListEventContent>),
PushRules(GlobalAccountDataEvent<PushRulesEventContent>),
SecretStorageDefaultKey(GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>),
SecretStorageKey(GlobalAccountDataEvent<SecretStorageKeyEventContent>),
MediaPreviewConfig(GlobalAccountDataEvent<MediaPreviewConfigEventContent>),
UnstableMediaPreviewConfig(GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>),
AccountImagePack(GlobalAccountDataEvent<AccountImagePackEventContent>),
ImagePackRooms(GlobalAccountDataEvent<ImagePackRoomsEventContent>),
RecentEmoji(GlobalAccountDataEvent<RecentEmojiEventContent>),
}events only.Expand description
Any global account data event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Direct(GlobalAccountDataEvent<DirectEventContent>)
m.direct
DoNotDisturb(GlobalAccountDataEvent<DoNotDisturbEventContent>)
unstable-msc4359 only.m.do_not_disturb
This variant uses the unstable type dm.filament.do_not_disturb.
This variant can also be deserialized from the m.do_not_disturb type.
IdentityServer(GlobalAccountDataEvent<IdentityServerEventContent>)
m.identity_server
InvitePermissionConfig(GlobalAccountDataEvent<InvitePermissionConfigEventContent>)
m.invite_permission_config
UnstableInvitePermissionConfig(GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>)
unstable-msc4380 only.org.matrix.msc4380.invite_permission_config
IgnoredUserList(GlobalAccountDataEvent<IgnoredUserListEventContent>)
m.ignored_user_list
PushRules(GlobalAccountDataEvent<PushRulesEventContent>)
m.push_rules
SecretStorageDefaultKey(GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>)
m.secret_storage.default_key
SecretStorageKey(GlobalAccountDataEvent<SecretStorageKeyEventContent>)
m.secret_storage.key.*
MediaPreviewConfig(GlobalAccountDataEvent<MediaPreviewConfigEventContent>)
unstable-msc4278 only.m.media_preview_config
UnstableMediaPreviewConfig(GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>)
unstable-msc4278 only.io.element.msc4278.media_preview_config
AccountImagePack(GlobalAccountDataEvent<AccountImagePackEventContent>)
unstable-msc2545 only.m.image_pack
This variant uses the unstable type im.ponies.user_emotes.
This variant can also be deserialized from the m.image_pack type.
ImagePackRooms(GlobalAccountDataEvent<ImagePackRoomsEventContent>)
unstable-msc2545 only.m.image_pack.rooms
This variant uses the unstable type im.ponies.emote_rooms.
This variant can also be deserialized from the m.image_pack.rooms type.
RecentEmoji(GlobalAccountDataEvent<RecentEmojiEventContent>)
m.recent_emoji
Implementations§
Source§impl AnyGlobalAccountDataEvent
impl AnyGlobalAccountDataEvent
Sourcepub fn event_type(&self) -> GlobalAccountDataEventType
pub fn event_type(&self) -> GlobalAccountDataEventType
Returns the type of this event.
Sourcepub fn content(&self) -> AnyGlobalAccountDataEventContent
pub fn content(&self) -> AnyGlobalAccountDataEventContent
Returns the content for this event.
Trait Implementations§
Source§impl Clone for AnyGlobalAccountDataEvent
impl Clone for AnyGlobalAccountDataEvent
Source§fn clone(&self) -> AnyGlobalAccountDataEvent
fn clone(&self) -> AnyGlobalAccountDataEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyGlobalAccountDataEvent
impl Debug for AnyGlobalAccountDataEvent
Source§impl<'de> Deserialize<'de> for AnyGlobalAccountDataEvent
impl<'de> Deserialize<'de> for AnyGlobalAccountDataEvent
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AnyGlobalAccountDataEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AnyGlobalAccountDataEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<GlobalAccountDataEvent<AccountImagePackEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc2545 only.
impl From<GlobalAccountDataEvent<AccountImagePackEventContent>> for AnyGlobalAccountDataEvent
unstable-msc2545 only.Source§fn from(
c: GlobalAccountDataEvent<AccountImagePackEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<AccountImagePackEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<DirectEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<DirectEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<DirectEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<DirectEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<DoNotDisturbEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4359 only.
impl From<GlobalAccountDataEvent<DoNotDisturbEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4359 only.Source§fn from(
c: GlobalAccountDataEvent<DoNotDisturbEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<DoNotDisturbEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<IdentityServerEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<IdentityServerEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<IdentityServerEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<IdentityServerEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<IgnoredUserListEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<IgnoredUserListEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<IgnoredUserListEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<IgnoredUserListEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<ImagePackRoomsEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc2545 only.
impl From<GlobalAccountDataEvent<ImagePackRoomsEventContent>> for AnyGlobalAccountDataEvent
unstable-msc2545 only.Source§fn from(
c: GlobalAccountDataEvent<ImagePackRoomsEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<ImagePackRoomsEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<InvitePermissionConfigEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<InvitePermissionConfigEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<MediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4278 only.
impl From<GlobalAccountDataEvent<MediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4278 only.Source§fn from(
c: GlobalAccountDataEvent<MediaPreviewConfigEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<MediaPreviewConfigEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<PushRulesEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<PushRulesEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<PushRulesEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<PushRulesEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<RecentEmojiEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<RecentEmojiEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<RecentEmojiEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<RecentEmojiEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<SecretStorageKeyEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<SecretStorageKeyEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(
c: GlobalAccountDataEvent<SecretStorageKeyEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<SecretStorageKeyEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4380 only.
impl From<GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4380 only.Source§fn from(
c: GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>, ) -> AnyGlobalAccountDataEvent
Source§impl From<GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4278 only.
impl From<GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4278 only.Source§fn from(
c: GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>,
) -> AnyGlobalAccountDataEvent
fn from( c: GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>, ) -> AnyGlobalAccountDataEvent
impl<C> JsonCastable<AnyGlobalAccountDataEvent> for GlobalAccountDataEvent<C>where
C: GlobalAccountDataEventContent,
impl JsonCastable<Map<String, Value>> for AnyGlobalAccountDataEvent
Auto Trait Implementations§
impl Freeze for AnyGlobalAccountDataEvent
impl RefUnwindSafe for AnyGlobalAccountDataEvent
impl Send for AnyGlobalAccountDataEvent
impl Sync for AnyGlobalAccountDataEvent
impl Unpin for AnyGlobalAccountDataEvent
impl UnwindSafe for AnyGlobalAccountDataEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more