#[non_exhaustive]pub struct PresencePersistentEventContent {
pub state_override: Option<PresenceState>,
pub status: PresenceStatus,
}Expand description
The content of the m.presence.persistent account data key.
This uses the unstable prefix defined in MSC4532.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state_override: Option<PresenceState>A persistent global override for the user’s presence state.
status: PresenceStatusThe user’s extensible status.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PresencePersistentEventContent
impl<'de> Deserialize<'de> for PresencePersistentEventContent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PresencePersistentEventContent> for AnyGlobalAccountDataEventContent
Available on crate feature unstable-msc4532 only.
impl From<PresencePersistentEventContent> for AnyGlobalAccountDataEventContent
Available on crate feature
unstable-msc4532 only.Source§fn from(c: PresencePersistentEventContent) -> Self
fn from(c: PresencePersistentEventContent) -> Self
Converts to this type from the input type.
Source§impl GlobalAccountDataEventContent for PresencePersistentEventContent
impl GlobalAccountDataEventContent for PresencePersistentEventContent
Source§fn event_type(&self) -> GlobalAccountDataEventType
fn event_type(&self) -> GlobalAccountDataEventType
Get the event’s type, like
m.push_rules.impl JsonCastable<AnyGlobalAccountDataEventContent> for PresencePersistentEventContent
Available on crate feature
unstable-msc4532 only.impl JsonCastable<Map<String, Value>> for PresencePersistentEventContent
Auto Trait Implementations§
impl Freeze for PresencePersistentEventContent
impl RefUnwindSafe for PresencePersistentEventContent
impl Send for PresencePersistentEventContent
impl Sync for PresencePersistentEventContent
impl Unpin for PresencePersistentEventContent
impl UnsafeUnpin for PresencePersistentEventContent
impl UnwindSafe for PresencePersistentEventContent
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
Mutably borrows from an owned value. Read more