#[non_exhaustive]pub enum AnyGlobalAccountDataEvent {
Show 14 variants
Direct(DirectEvent),
DoNotDisturb(DoNotDisturbEvent),
IdentityServer(IdentityServerEvent),
InvitePermissionConfig(InvitePermissionConfigEvent),
UnstableInvitePermissionConfig(UnstableInvitePermissionConfigEvent),
IgnoredUserList(IgnoredUserListEvent),
PushRules(PushRulesEvent),
SecretStorageDefaultKey(SecretStorageDefaultKeyEvent),
SecretStorageKey(SecretStorageKeyEvent),
MediaPreviewConfig(GlobalMediaPreviewConfigEvent),
UnstableMediaPreviewConfig(GlobalUnstableMediaPreviewConfigEvent),
AccountImagePack(AccountImagePackEvent),
ImagePackRooms(ImagePackRoomsEvent),
RecentEmoji(RecentEmojiEvent),
}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
UnstableInvitePermissionConfig(UnstableInvitePermissionConfigEvent)
org.matrix.msc4380.invite_permission_config
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.
RecentEmoji(RecentEmojiEvent)
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<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
impl From<GlobalAccountDataEvent<InvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
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<RecentEmojiEventContent>> for AnyGlobalAccountDataEvent
impl From<GlobalAccountDataEvent<RecentEmojiEventContent>> for AnyGlobalAccountDataEvent
Source§fn from(c: RecentEmojiEvent) -> Self
fn from(c: RecentEmojiEvent) -> 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<UnstableInvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
Available on crate feature unstable-msc4380 only.
impl From<GlobalAccountDataEvent<UnstableInvitePermissionConfigEventContent>> for AnyGlobalAccountDataEvent
unstable-msc4380 only.Source§fn from(c: UnstableInvitePermissionConfigEvent) -> Self
fn from(c: UnstableInvitePermissionConfigEvent) -> Self
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: GlobalUnstableMediaPreviewConfigEvent) -> Self
fn from(c: GlobalUnstableMediaPreviewConfigEvent) -> Self
impl<C: GlobalAccountDataEventContent> JsonCastable<AnyGlobalAccountDataEvent> for GlobalAccountDataEvent<C>
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