#[non_exhaustive]pub enum Edu {
Presence(PresenceContent),
Receipt(ReceiptContent),
Typing(TypingContent),
}
Available on crate feature
api
and (crate features appservice-api-c
or appservice-api-s
) and crate feature unstable-msc2409
only.Expand description
Type for passing ephemeral data to homeservers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Presence(PresenceContent)
An EDU representing presence updates for users of the sending homeserver.
Receipt(ReceiptContent)
An EDU representing receipt updates for users of the sending homeserver.
Typing(TypingContent)
A typing notification EDU for a user in a room.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edu
impl<'de> Deserialize<'de> for Edu
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Edu, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Edu, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Edu
impl Serialize for Edu
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 Edu
impl RefUnwindSafe for Edu
impl Send for Edu
impl Sync for Edu
impl Unpin for Edu
impl UnwindSafe for Edu
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