Struct google_gmail1::api::VacationSettings[][src]

pub struct VacationSettings {
    pub enable_auto_reply: Option<bool>,
    pub end_time: Option<String>,
    pub response_body_html: Option<String>,
    pub response_body_plain_text: Option<String>,
    pub response_subject: Option<String>,
    pub restrict_to_contacts: Option<bool>,
    pub restrict_to_domain: Option<bool>,
    pub start_time: Option<String>,
}
Expand description

Vacation auto-reply settings for an account. These settings correspond to the “Vacation responder” feature in the web interface.

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

enable_auto_reply: Option<bool>

Flag that controls whether Gmail automatically replies to messages.

end_time: Option<String>

An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime.

response_body_html: Option<String>

Response body in HTML format. Gmail will sanitize the HTML before storing it. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.

response_body_plain_text: Option<String>

Response body in plain text format. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.

response_subject: Option<String>

Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.

restrict_to_contacts: Option<bool>

Flag that determines whether responses are sent to recipients who are not in the user’s list of contacts.

restrict_to_domain: Option<bool>

Flag that determines whether responses are sent to recipients who are outside of the user’s domain. This feature is only available for G Suite users.

start_time: Option<String>

An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.

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.