pub struct AddressArrayBuilder { /* private fields */ }Expand description
Incremental builder for StreetAddressArrays
Implementations§
Source§impl AddressArrayBuilder
impl AddressArrayBuilder
Sourcepub fn build(self) -> Result<StreetAddressArray, BriteVerifyTypeError>
pub fn build(self) -> Result<StreetAddressArray, BriteVerifyTypeError>
Build a StreetAddressArray from the configured values
Sourcepub fn buildable(&self) -> bool
pub fn buildable(&self) -> bool
Determine if a valid StreetAddressArray can be
constructed from the current builder state
Sourcepub fn zip<Displayable: ToString>(self, value: Displayable) -> Self
pub fn zip<Displayable: ToString>(self, value: Displayable) -> Self
Set the “zip” value of the
StreetAddressArray being built
Sourcepub fn city<Displayable: ToString>(self, value: Displayable) -> Self
pub fn city<Displayable: ToString>(self, value: Displayable) -> Self
Set the “city” value of the
StreetAddressArray being built
Sourcepub fn state<Displayable: ToString>(self, value: Displayable) -> Self
pub fn state<Displayable: ToString>(self, value: Displayable) -> Self
Set the “state” value of the
StreetAddressArray being built
Sourcepub fn address1<Displayable: ToString>(self, value: Displayable) -> Self
pub fn address1<Displayable: ToString>(self, value: Displayable) -> Self
Set the “address1” value of the
StreetAddressArray being built
Sourcepub fn address2<Displayable: ToString>(self, value: Displayable) -> Self
pub fn address2<Displayable: ToString>(self, value: Displayable) -> Self
Set the “address2” value of the
StreetAddressArray being built
Sourcepub fn from_values<AddressLine1: ToString, AddressLine2: ToString, CityName: ToString, StateNameOrAbbr: ToString, ZipCode: ToString>(
address1: Option<AddressLine1>,
address2: Option<AddressLine2>,
city: Option<CityName>,
state: Option<StateNameOrAbbr>,
zip: Option<ZipCode>,
) -> Self
pub fn from_values<AddressLine1: ToString, AddressLine2: ToString, CityName: ToString, StateNameOrAbbr: ToString, ZipCode: ToString>( address1: Option<AddressLine1>, address2: Option<AddressLine2>, city: Option<CityName>, state: Option<StateNameOrAbbr>, zip: Option<ZipCode>, ) -> Self
Create a new StreetAddressArray instance
pre-populated with the supplied argument values
Trait Implementations§
Source§impl Debug for AddressArrayBuilder
impl Debug for AddressArrayBuilder
Source§impl Default for AddressArrayBuilder
impl Default for AddressArrayBuilder
Source§fn default() -> AddressArrayBuilder
fn default() -> AddressArrayBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddressArrayBuilder
impl RefUnwindSafe for AddressArrayBuilder
impl Send for AddressArrayBuilder
impl Sync for AddressArrayBuilder
impl Unpin for AddressArrayBuilder
impl UnwindSafe for AddressArrayBuilder
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