Struct rust_tdlib::types::GetPreferredCountryLanguage
source · pub struct GetPreferredCountryLanguage { /* private fields */ }
Expand description
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown
Implementations§
Trait Implementations§
source§impl AsRef<GetPreferredCountryLanguage> for GetPreferredCountryLanguage
impl AsRef<GetPreferredCountryLanguage> for GetPreferredCountryLanguage
source§fn as_ref(&self) -> &GetPreferredCountryLanguage
fn as_ref(&self) -> &GetPreferredCountryLanguage
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GetPreferredCountryLanguage
impl Clone for GetPreferredCountryLanguage
source§fn clone(&self) -> GetPreferredCountryLanguage
fn clone(&self) -> GetPreferredCountryLanguage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetPreferredCountryLanguage
impl Debug for GetPreferredCountryLanguage
source§impl Default for GetPreferredCountryLanguage
impl Default for GetPreferredCountryLanguage
source§fn default() -> GetPreferredCountryLanguage
fn default() -> GetPreferredCountryLanguage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetPreferredCountryLanguage
impl<'de> Deserialize<'de> for GetPreferredCountryLanguage
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>,
Deserialize this value from the given Serde deserializer. Read more