pub struct ReceiveMessageRequestAttachmentsInner {
pub id: String,
pub type: String,
pub name: Option<String>,
pub size: Option<f32>,
pub url: String,
pub preview_url: Option<String>,
pub link_expires: Option<bool>,
}
Fields§
§id: String
The ID of the attachment
type: String
The mime-type of the attachment
name: Option<String>
The name of the attachment
size: Option<f32>
The size of the attachment
url: String
A URL to the file
preview_url: Option<String>
A URL to a preview picture of the file
link_expires: Option<bool>
If true, it will use the getMessageById endpoint for fetching updated attachment’s urls. Find out more here
Implementations§
Trait Implementations§
Source§impl Clone for ReceiveMessageRequestAttachmentsInner
impl Clone for ReceiveMessageRequestAttachmentsInner
Source§fn clone(&self) -> ReceiveMessageRequestAttachmentsInner
fn clone(&self) -> ReceiveMessageRequestAttachmentsInner
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<'de> Deserialize<'de> for ReceiveMessageRequestAttachmentsInner
impl<'de> Deserialize<'de> for ReceiveMessageRequestAttachmentsInner
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 ReceiveMessageRequestAttachmentsInner
impl PartialEq for ReceiveMessageRequestAttachmentsInner
Source§fn eq(&self, other: &ReceiveMessageRequestAttachmentsInner) -> bool
fn eq(&self, other: &ReceiveMessageRequestAttachmentsInner) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReceiveMessageRequestAttachmentsInner
Auto Trait Implementations§
impl Freeze for ReceiveMessageRequestAttachmentsInner
impl RefUnwindSafe for ReceiveMessageRequestAttachmentsInner
impl Send for ReceiveMessageRequestAttachmentsInner
impl Sync for ReceiveMessageRequestAttachmentsInner
impl Unpin for ReceiveMessageRequestAttachmentsInner
impl UnwindSafe for ReceiveMessageRequestAttachmentsInner
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