Struct google_gmail1::VacationSettings
source · pub struct VacationSettings {
pub response_subject: Option<String>,
pub response_body_plain_text: Option<String>,
pub restrict_to_contacts: Option<bool>,
pub enable_auto_reply: Option<bool>,
pub start_time: Option<String>,
pub end_time: Option<String>,
pub response_body_html: Option<String>,
pub restrict_to_domain: Option<bool>,
}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).
- settings update vacation users (request|response)
- settings get vacation users (response)
Fields§
§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.
response_body_plain_text: Option<String>Response body in plain text format.
restrict_to_contacts: Option<bool>Flag that determines whether responses are sent to recipients who are not in the user’s list of contacts.
enable_auto_reply: Option<bool>Flag that controls whether Gmail automatically replies to messages.
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.
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.
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.
Trait Implementations§
source§impl Clone for VacationSettings
impl Clone for VacationSettings
source§fn clone(&self) -> VacationSettings
fn clone(&self) -> VacationSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VacationSettings
impl Debug for VacationSettings
source§impl Default for VacationSettings
impl Default for VacationSettings
source§fn default() -> VacationSettings
fn default() -> VacationSettings
source§impl<'de> Deserialize<'de> for VacationSettings
impl<'de> Deserialize<'de> for VacationSettings
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>,
source§impl Serialize for VacationSettings
impl Serialize for VacationSettings
impl RequestValue for VacationSettings
impl ResponseResult for VacationSettings
Auto Trait Implementations§
impl Freeze for VacationSettings
impl RefUnwindSafe for VacationSettings
impl Send for VacationSettings
impl Sync for VacationSettings
impl Unpin for VacationSettings
impl UnwindSafe for VacationSettings
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more