Struct rust_tdlib::types::Address
source · pub struct Address { /* private fields */ }
Expand description
Describes an address
Implementations§
source§impl Address
impl Address
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AddressBuilder
pub fn country_code(&self) -> &String
pub fn state(&self) -> &String
pub fn city(&self) -> &String
pub fn street_line1(&self) -> &String
pub fn street_line2(&self) -> &String
pub fn postal_code(&self) -> &String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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