pub struct StreetAddressArray {
pub address1: String,
pub address2: Option<String>,
pub city: String,
pub state: String,
pub zip: String,
}Expand description
A standardized representation of a street address
Fields§
§address1: StringThe address’s street number and name
address2: Option<String>Additional / supplemental delivery information (e.g. apartment, suite, or P.O. box number)
city: StringThe address’s city or town
state: StringThe address’s state or province
zip: StringThe address’s ZIP or postal code
Implementations§
Source§impl StreetAddressArray
impl StreetAddressArray
Sourcepub fn builder() -> AddressArrayBuilder
pub fn builder() -> AddressArrayBuilder
Build an StreetAddressArray incrementally
Sourcepub fn from_values<Displayable: ToString>(
address1: Displayable,
address2: Option<Displayable>,
city: Displayable,
state: Displayable,
zip: Displayable,
) -> Self
pub fn from_values<Displayable: ToString>( address1: Displayable, address2: Option<Displayable>, city: Displayable, state: Displayable, zip: Displayable, ) -> Self
Create a new StreetAddressArray
from the supplied values
Trait Implementations§
Source§impl Debug for StreetAddressArray
impl Debug for StreetAddressArray
Source§impl<'de> Deserialize<'de> for StreetAddressArray
impl<'de> Deserialize<'de> for StreetAddressArray
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 StreetAddressArray
impl RefUnwindSafe for StreetAddressArray
impl Send for StreetAddressArray
impl Sync for StreetAddressArray
impl Unpin for StreetAddressArray
impl UnwindSafe for StreetAddressArray
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more