#[non_exhaustive]pub enum Displayed {
Unknown,
Yes,
Other(String),
}Expand description
Display status of a message to a recipient (RFC 8621 §7, displayed field).
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.
Unknown
The display status is unknown.
Yes
The message has been displayed to the recipient at least once.
Other(String)
An unrecognised value was received from the server.
The inner string retains the original value so this variant round-trips correctly.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Displayed
impl<'de> Deserialize<'de> for Displayed
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Displayed
impl StructuralPartialEq for Displayed
Auto Trait Implementations§
impl Freeze for Displayed
impl RefUnwindSafe for Displayed
impl Send for Displayed
impl Sync for Displayed
impl Unpin for Displayed
impl UnsafeUnpin for Displayed
impl UnwindSafe for Displayed
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