pub struct Address {
pub name: Option<AddressName>,
pub address1: Option<AddressLine>,
pub address2: Option<AddressLine>,
pub city: Option<City>,
pub state: Option<State>,
pub zip: Option<ZipCode>,
pub country: Option<Country>,
}Expand description
Dados de endereço com validação tipo-segura
Fields§
§name: Option<AddressName>Nome completo do destinatário (max 100 chars)
address1: Option<AddressLine>Endereço principal (max 255 chars)
address2: Option<AddressLine>Complemento adicional (max 255 chars)
city: Option<City>Cidade (max 100 chars)
state: Option<State>Estado/Província (max 100 chars)
zip: Option<ZipCode>CEP (max 100 chars)
country: Option<Country>País - código ISO 3166-2 (exatamente 2 chars)
Implementations§
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
impl StructuralPartialEq for Address
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