pub struct MessageAttachment {
pub file_id: String,
pub tools: Vec<MessageAttachmentTool>,
}
Fields§
§file_id: String
The ID of the file to attach to the message.
tools: Vec<MessageAttachmentTool>
The tools to add this file to.
Trait Implementations§
Source§impl Clone for MessageAttachment
impl Clone for MessageAttachment
Source§fn clone(&self) -> MessageAttachment
fn clone(&self) -> MessageAttachment
Returns a copy 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 MessageAttachment
impl Debug for MessageAttachment
Source§impl<'de> Deserialize<'de> for MessageAttachment
impl<'de> Deserialize<'de> for MessageAttachment
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 MessageAttachment
impl PartialEq for MessageAttachment
Source§impl Serialize for MessageAttachment
impl Serialize for MessageAttachment
impl StructuralPartialEq for MessageAttachment
Auto Trait Implementations§
impl Freeze for MessageAttachment
impl RefUnwindSafe for MessageAttachment
impl Send for MessageAttachment
impl Sync for MessageAttachment
impl Unpin for MessageAttachment
impl UnwindSafe for MessageAttachment
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