#[non_exhaustive]pub enum AnyGlobalAccountDataEvent {
Direct(DirectEvent),
DoNotDisturb(DoNotDisturbEvent),
IdentityServer(IdentityServerEvent),
InvitePermissionConfig(InvitePermissionConfigEvent),
IgnoredUserList(IgnoredUserListEvent),
PushRules(PushRulesEvent),
SecretStorageDefaultKey(SecretStorageDefaultKeyEvent),
SecretStorageKey(SecretStorageKeyEvent),
MediaPreviewConfig(GlobalMediaPreviewConfigEvent),
UnstableMediaPreviewConfig(GlobalUnstableMediaPreviewConfigEvent),
AccountImagePack(AccountImagePackEvent),
ImagePackRooms(ImagePackRoomsEvent),
}Expand description
Any global account data event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Direct(DirectEvent)
m.direct
DoNotDisturb(DoNotDisturbEvent)
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(IdentityServerEvent)
m.identity_server
InvitePermissionConfig(InvitePermissionConfigEvent)
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(IgnoredUserListEvent)
m.ignored_user_list
PushRules(PushRulesEvent)
m.push_rules
SecretStorageDefaultKey(SecretStorageDefaultKeyEvent)
m.secret_storage.default_key
SecretStorageKey(SecretStorageKeyEvent)
m.secret_storage.key.*
MediaPreviewConfig(GlobalMediaPreviewConfigEvent)
m.media_preview_config
UnstableMediaPreviewConfig(GlobalUnstableMediaPreviewConfigEvent)
io.element.msc4278.media_preview_config
AccountImagePack(AccountImagePackEvent)
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(ImagePackRoomsEvent)
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 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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::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: AccountImagePackEvent) -> Self
fn from(c: AccountImagePackEvent) -> Self
Source§impl From<GlobalAccountDataEvent<DirectEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<DirectEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: DirectEvent) -> Self
fn from(c: DirectEvent) -> Self
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: DoNotDisturbEvent) -> Self
fn from(c: DoNotDisturbEvent) -> Self
Source§impl From<GlobalAccountDataEvent<IdentityServerEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<IdentityServerEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: IdentityServerEvent) -> Self
fn from(c: IdentityServerEvent) -> Self
Source§impl From<GlobalAccountDataEvent<IgnoredUserListEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<IgnoredUserListEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: IgnoredUserListEvent) -> Self
fn from(c: IgnoredUserListEvent) -> Self
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: ImagePackRoomsEvent) -> Self
fn from(c: ImagePackRoomsEvent) -> Self
Source§impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4380 only.
impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4380 only.Source§fn from(c: InvitePermissionConfigEvent) -> Self
fn from(c: InvitePermissionConfigEvent) -> Self
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: GlobalMediaPreviewConfigEvent) -> Self
fn from(c: GlobalMediaPreviewConfigEvent) -> Self
Source§impl From<GlobalAccountDataEvent<PushRulesEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<PushRulesEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: PushRulesEvent) -> Self
fn from(c: PushRulesEvent) -> Self
Source§impl From<GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<SecretStorageDefaultKeyEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: SecretStorageDefaultKeyEvent) -> Self
fn from(c: SecretStorageDefaultKeyEvent) -> Self
Source§impl From<GlobalAccountDataEvent<SecretStorageKeyEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<SecretStorageKeyEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: SecretStorageKeyEvent) -> Self
fn from(c: SecretStorageKeyEvent) -> Self
Source§impl From<GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4278 only.
impl From<GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4278 only.