pub enum UserAttachment {
Image(ImageSource),
}Expand description
One attachment on a ChatMessage::User. Image is the only variant
today; documents / file_id round-trips slot in as future variants
without breaking pattern matches (callers should use , .. rest
pattern when destructuring User to stay forward-compat).
Variants§
Image(ImageSource)
Trait Implementations§
Source§impl Clone for UserAttachment
impl Clone for UserAttachment
Source§fn clone(&self) -> UserAttachment
fn clone(&self) -> UserAttachment
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 Debug for UserAttachment
impl Debug for UserAttachment
Source§impl<'de> Deserialize<'de> for UserAttachment
impl<'de> Deserialize<'de> for UserAttachment
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 PartialEq for UserAttachment
impl PartialEq for UserAttachment
Source§fn eq(&self, other: &UserAttachment) -> bool
fn eq(&self, other: &UserAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserAttachment
impl Serialize for UserAttachment
impl StructuralPartialEq for UserAttachment
Auto Trait Implementations§
impl Freeze for UserAttachment
impl RefUnwindSafe for UserAttachment
impl Send for UserAttachment
impl Sync for UserAttachment
impl Unpin for UserAttachment
impl UnsafeUnpin for UserAttachment
impl UnwindSafe for UserAttachment
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