pub struct MsgraphAttachment {
pub id: String,
pub name: Option<String>,
pub content_type: Option<String>,
pub size: Option<i64>,
pub is_inline: Option<bool>,
pub last_modified_date_time: Option<String>,
pub content_bytes: Option<String>,
}Expand description
A message attachment.
Graph models several subtypes (fileAttachment, itemAttachment,
referenceAttachment); this captures the common fields plus the
fileAttachment content bytes (base64) when present.
Fields§
§id: StringThe unique identifier of the attachment.
name: Option<String>The file name of the attachment.
content_type: Option<String>The MIME type of the attachment content.
size: Option<i64>The size of the attachment in bytes.
is_inline: Option<bool>Whether the attachment is displayed inline in the body.
last_modified_date_time: Option<String>The last modification date, as an ISO 8601 date-time.
content_bytes: Option<String>The base64-encoded content, for the fileAttachment subtype.
Trait Implementations§
Source§impl Clone for MsgraphAttachment
impl Clone for MsgraphAttachment
Source§fn clone(&self) -> MsgraphAttachment
fn clone(&self) -> MsgraphAttachment
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 MsgraphAttachment
impl Debug for MsgraphAttachment
Source§impl Default for MsgraphAttachment
impl Default for MsgraphAttachment
Source§fn default() -> MsgraphAttachment
fn default() -> MsgraphAttachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MsgraphAttachment
impl<'de> Deserialize<'de> for MsgraphAttachment
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
impl Eq for MsgraphAttachment
Source§impl PartialEq for MsgraphAttachment
impl PartialEq for MsgraphAttachment
Source§impl Serialize for MsgraphAttachment
impl Serialize for MsgraphAttachment
impl StructuralPartialEq for MsgraphAttachment
Auto Trait Implementations§
impl Freeze for MsgraphAttachment
impl RefUnwindSafe for MsgraphAttachment
impl Send for MsgraphAttachment
impl Sync for MsgraphAttachment
impl Unpin for MsgraphAttachment
impl UnsafeUnpin for MsgraphAttachment
impl UnwindSafe for MsgraphAttachment
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