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).

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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.