#[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>)
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>)
unstable-msc4380 only.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>)
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.
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
Available on crate feature unstable-msc4380 only.
impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4380 only.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<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<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4278 only.
impl From<GlobalAccountDataEvent<UnstableMediaPreviewConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4278 only.