#[non_exhaustive]pub struct PresencePersistentEventContent {
pub state_override: Option<PresenceState>,
pub status: PresenceStatus,
}Available on crate features
events and unstable-msc4532 only.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 Clone for PresencePersistentEventContent
impl Clone for PresencePersistentEventContent
Source§fn clone(&self) -> PresencePersistentEventContent
fn clone(&self) -> PresencePersistentEventContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PresencePersistentEventContent
impl Default for PresencePersistentEventContent
Source§fn default() -> PresencePersistentEventContent
fn default() -> PresencePersistentEventContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PresencePersistentEventContent
impl<'de> Deserialize<'de> for PresencePersistentEventContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresencePersistentEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresencePersistentEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PresencePersistentEventContent> for AnyGlobalAccountDataEventContent
impl From<PresencePersistentEventContent> for AnyGlobalAccountDataEventContent
Source§fn from(c: PresencePersistentEventContent) -> AnyGlobalAccountDataEventContent
fn from(c: PresencePersistentEventContent) -> AnyGlobalAccountDataEventContent
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
impl JsonCastable<Map<String, Value>> for PresencePersistentEventContent
Source§impl Serialize for PresencePersistentEventContent
impl Serialize for PresencePersistentEventContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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