pub struct ContentAttachment {
pub attachment_type: AttachmentType,
pub content: AttachmentContent,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Attachment within message content
Fields§
§attachment_type: AttachmentTypeType of attachment
content: AttachmentContentContent of the attachment
metadata: Option<HashMap<String, Value>>Optional metadata
Implementations§
Source§impl ContentAttachment
impl ContentAttachment
Trait Implementations§
Source§impl Clone for ContentAttachment
impl Clone for ContentAttachment
Source§fn clone(&self) -> ContentAttachment
fn clone(&self) -> ContentAttachment
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 ContentAttachment
impl Debug for ContentAttachment
Source§impl<'de> Deserialize<'de> for ContentAttachment
impl<'de> Deserialize<'de> for ContentAttachment
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
Auto Trait Implementations§
impl Freeze for ContentAttachment
impl RefUnwindSafe for ContentAttachment
impl Send for ContentAttachment
impl Sync for ContentAttachment
impl Unpin for ContentAttachment
impl UnwindSafe for ContentAttachment
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