Struct google_chat1::api::Attachment [−][src]
pub struct Attachment {
pub attachment_data_ref: Option<AttachmentDataRef>,
pub content_name: Option<String>,
pub content_type: Option<String>,
pub download_uri: Option<String>,
pub drive_data_ref: Option<DriveDataRef>,
pub name: Option<String>,
pub source: Option<String>,
pub thumbnail_uri: Option<String>,
}
Expand description
An attachment in Hangouts Chat.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- messages attachments get spaces (response)
Fields
attachment_data_ref: Option<AttachmentDataRef>
A reference to the attachment data. This is used with the media API to download the attachment data.
content_name: Option<String>
The original file name for the content, not the full path.
content_type: Option<String>
The content type (MIME type) of the file.
download_uri: Option<String>
Output only. The download URL which should be used to allow a human user to download the attachment. Bots should not use this URL to download attachment content.
drive_data_ref: Option<DriveDataRef>
A reference to the drive attachment. This is used with the Drive API.
name: Option<String>
Resource name of the attachment, in the form “spaces//messages//attachments/*”.
source: Option<String>
The source of the attachment.
thumbnail_uri: Option<String>
Output only. The thumbnail URL which should be used to preview the attachment to a human user. Bots should not use this URL to download attachment content.
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more