pub struct LanguageSettings {
pub display_language: Option<String>,
}
Expand description
Language settings for an account. These settings correspond to the “Language settings” 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 get language users (response)
- settings update language users (request|response)
Fields§
§display_language: Option<String>
The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example en-GB
, fr
or ja
for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the “Language” dropdown in the Gmail settings for all available options, as described in the language settings help article. A table of sample values is also provided in the Managing Language Settings guide Not all Gmail clients can display the same set of languages. In the case that a user’s display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).
Trait Implementations§
Source§impl Clone for LanguageSettings
impl Clone for LanguageSettings
Source§fn clone(&self) -> LanguageSettings
fn clone(&self) -> LanguageSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LanguageSettings
impl Debug for LanguageSettings
Source§impl Default for LanguageSettings
impl Default for LanguageSettings
Source§fn default() -> LanguageSettings
fn default() -> LanguageSettings
Source§impl<'de> Deserialize<'de> for LanguageSettings
impl<'de> Deserialize<'de> for LanguageSettings
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 LanguageSettings
impl Serialize for LanguageSettings
impl RequestValue for LanguageSettings
impl ResponseResult for LanguageSettings
Auto Trait Implementations§
impl Freeze for LanguageSettings
impl RefUnwindSafe for LanguageSettings
impl Send for LanguageSettings
impl Sync for LanguageSettings
impl Unpin for LanguageSettings
impl UnwindSafe for LanguageSettings
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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