pub struct GetPreferredCountryLanguage {
pub country_code: String,
}
Expand description
Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown
Fields§
§country_code: String
A two-letter ISO 3166-1 alpha-2 country code
Trait Implementations§
Source§impl Clone for GetPreferredCountryLanguage
impl Clone for GetPreferredCountryLanguage
Source§fn clone(&self) -> GetPreferredCountryLanguage
fn clone(&self) -> GetPreferredCountryLanguage
Returns a duplicate 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<'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
Source§impl Method for GetPreferredCountryLanguage
impl Method for GetPreferredCountryLanguage
Auto Trait Implementations§
impl Freeze for GetPreferredCountryLanguage
impl RefUnwindSafe for GetPreferredCountryLanguage
impl Send for GetPreferredCountryLanguage
impl Sync for GetPreferredCountryLanguage
impl Unpin for GetPreferredCountryLanguage
impl UnwindSafe for GetPreferredCountryLanguage
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
Mutably borrows from an owned value. Read more