Struct tdlib::types::CountryInfo
source · [−]pub struct CountryInfo {
pub country_code: String,
pub name: String,
pub english_name: String,
pub is_hidden: bool,
pub calling_codes: Vec<String>,
}Expand description
Contains information about a country
Fields
country_code: StringA two-letter ISO 3166-1 alpha-2 country code
name: StringNative name of the country
english_name: StringEnglish name of the country
True, if the country must be hidden from the list of all countries
calling_codes: Vec<String>List of country calling codes
Trait Implementations
sourceimpl Clone for CountryInfo
impl Clone for CountryInfo
sourcefn clone(&self) -> CountryInfo
fn clone(&self) -> CountryInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CountryInfo
impl Debug for CountryInfo
sourceimpl Default for CountryInfo
impl Default for CountryInfo
sourcefn default() -> CountryInfo
fn default() -> CountryInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CountryInfo
impl<'de> Deserialize<'de> for CountryInfo
sourcefn 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
sourceimpl PartialEq<CountryInfo> for CountryInfo
impl PartialEq<CountryInfo> for CountryInfo
sourcefn eq(&self, other: &CountryInfo) -> bool
fn eq(&self, other: &CountryInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CountryInfo) -> bool
fn ne(&self, other: &CountryInfo) -> bool
This method tests for !=.
sourceimpl Serialize for CountryInfo
impl Serialize for CountryInfo
impl StructuralPartialEq for CountryInfo
Auto Trait Implementations
impl RefUnwindSafe for CountryInfo
impl Send for CountryInfo
impl Sync for CountryInfo
impl Unpin for CountryInfo
impl UnwindSafe for CountryInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more