#[non_exhaustive]pub enum AnyGlobalAccountDataEvent {
Direct(GlobalAccountDataEvent<DirectEventContent>),
DoNotDisturb(GlobalAccountDataEvent<DoNotDisturbEventContent>),
IdentityServer(GlobalAccountDataEvent<IdentityServerEventContent>),
InvitePermissionConfig(GlobalAccountDataEvent<InvitePermissionConfigEventContent>),
IgnoredUserList(GlobalAccountDataEvent<IgnoredUserListEventContent>),
PushRules(GlobalAccountDataEvent<PushRulesEventContent>),
SecretStorageDefaultKey(GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>),
SecretStorageKey(GlobalAccountDataEvent<SecretStorageKeyEventContent>),
MediaPreviewConfig(GlobalAccountDataEvent<MediaPreviewConfigEventContent>),
UnstableMediaPreviewConfig(GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>),
AccountImagePack(GlobalAccountDataEvent<AccountImagePackEventContent>),
ImagePackRooms(GlobalAccountDataEvent<ImagePackRoomsEventContent>),
}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>)
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
This variant uses the unstable type org.matrix.msc4380.invite_permission_config.
This variant can also be deserialized from the m.invite_permission_config type.
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>)
m.media_preview_config
UnstableMediaPreviewConfig(GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>)
io.element.msc4278.media_preview_config
AccountImagePack(GlobalAccountDataEvent<AccountImagePackEventContent>)
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>)
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.
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 more