Struct tdlib::types::PhoneNumberInfo
source · pub struct PhoneNumberInfo {
pub country: Option<CountryInfo>,
pub country_calling_code: String,
pub formatted_phone_number: String,
}
Expand description
Contains information about a phone number
Fields§
§country: Option<CountryInfo>
Information about the country to which the phone number belongs; may be null
country_calling_code: String
The part of the phone number denoting country calling code or its part
formatted_phone_number: String
The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as ‘-’, but even more digits might be entered by the user
Trait Implementations§
source§impl Clone for PhoneNumberInfo
impl Clone for PhoneNumberInfo
source§fn clone(&self) -> PhoneNumberInfo
fn clone(&self) -> PhoneNumberInfo
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 PhoneNumberInfo
impl Debug for PhoneNumberInfo
source§impl<'de> Deserialize<'de> for PhoneNumberInfo
impl<'de> Deserialize<'de> for PhoneNumberInfo
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