pub struct Address {
pub postcode: String,
pub prefecture: String,
pub prefecture_kana: String,
pub prefecture_code: i32,
pub city: String,
pub city_kana: String,
pub town: String,
pub town_kana: String,
pub street: Option<String>,
pub office_name: Option<String>,
pub office_name_kana: Option<String>,
}Fields§
§postcode: String§prefecture: String§prefecture_kana: String§prefecture_code: i32§city: String§city_kana: String§town: String§town_kana: String§street: Option<String>§office_name: Option<String>§office_name_kana: Option<String>Implementations§
Source§impl Address
impl Address
pub fn full_address(&self) -> String
pub fn full_address_kana(&self) -> String
pub fn formatted(&self) -> String
pub fn formatted_with_kana(&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
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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