pub struct Address<CustomDataType = NoCustomData> {
pub address1: String<100usize>,
pub address2: Option<String<100usize>>,
pub city: String<100usize>,
pub country: String<50usize>,
pub custom_data: Option<CustomDataType>,
pub name: String<50usize>,
pub postal_code: Option<String<20usize>>,
}Expand description
(2.1) A generic address format.
Fields§
§address1: String<100usize>Address line 1
address2: Option<String<100usize>>Address line 2
city: String<100usize>City
country: String<50usize>Country name
custom_data: Option<CustomDataType>§name: String<50usize>Name of person/company
postal_code: Option<String<20usize>>Postal code
Trait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for Address<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for Address<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for Address<CustomDataType>
impl<CustomDataType: PartialEq> StructuralPartialEq for Address<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for Address<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for Address<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for Address<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for Address<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for Address<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for Address<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for Address<CustomDataType>where
CustomDataType: UnwindSafe,
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