#[non_exhaustive]pub enum StateEventFormat {
Content,
Event,
}
Available on crate feature
api
and (crate features client-api-c
or client-api-s
) only.Expand description
The format to use for the returned data.
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.
Content
Will return only the content of the state event.
This is the default value if the format is unspecified in the request.
Event
Will return the entire event in the usual format suitable for clients, including fields like event ID, sender and timestamp.
Trait Implementations§
Source§impl Clone for StateEventFormat
impl Clone for StateEventFormat
Source§fn clone(&self) -> StateEventFormat
fn clone(&self) -> StateEventFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StateEventFormat
impl Debug for StateEventFormat
Source§impl Default for StateEventFormat
impl Default for StateEventFormat
Source§fn default() -> StateEventFormat
fn default() -> StateEventFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateEventFormat
impl<'de> Deserialize<'de> for StateEventFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateEventFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateEventFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StateEventFormat
impl PartialEq for StateEventFormat
Source§impl Serialize for StateEventFormat
impl Serialize for StateEventFormat
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
impl Copy for StateEventFormat
impl StructuralPartialEq for StateEventFormat
Auto Trait Implementations§
impl Freeze for StateEventFormat
impl RefUnwindSafe for StateEventFormat
impl Send for StateEventFormat
impl Sync for StateEventFormat
impl Unpin for StateEventFormat
impl UnwindSafe for StateEventFormat
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