Struct rust_tdlib::types::Address
source · [−]pub struct Address { /* private fields */ }
Expand description
Describes an address
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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