pub struct AddressBuilder { /* private fields */ }Expand description
Builder para criar endereços
Implementations§
Source§impl AddressBuilder
impl AddressBuilder
Sourcepub fn name(self, name: impl Into<String>) -> Result<Self, ValidationError>
pub fn name(self, name: impl Into<String>) -> Result<Self, ValidationError>
Define o nome do destinatário a partir de uma string
Sourcepub fn address1(
self,
address: impl Into<String>,
) -> Result<Self, ValidationError>
pub fn address1( self, address: impl Into<String>, ) -> Result<Self, ValidationError>
Define o endereço principal a partir de uma string
Sourcepub fn address2(
self,
address: impl Into<String>,
) -> Result<Self, ValidationError>
pub fn address2( self, address: impl Into<String>, ) -> Result<Self, ValidationError>
Define o complemento a partir de uma string
Sourcepub fn city(self, city: impl Into<String>) -> Result<Self, ValidationError>
pub fn city(self, city: impl Into<String>) -> Result<Self, ValidationError>
Define a cidade a partir de uma string
Sourcepub fn state(self, state: impl Into<String>) -> Result<Self, ValidationError>
pub fn state(self, state: impl Into<String>) -> Result<Self, ValidationError>
Define o estado a partir de uma string
Trait Implementations§
Source§impl Default for AddressBuilder
impl Default for AddressBuilder
Source§fn default() -> AddressBuilder
fn default() -> AddressBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddressBuilder
impl RefUnwindSafe for AddressBuilder
impl Send for AddressBuilder
impl Sync for AddressBuilder
impl Unpin for AddressBuilder
impl UnwindSafe for AddressBuilder
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