pub struct ShippingDestination { /* private fields */ }Implementations§
Source§impl ShippingDestination
impl ShippingDestination
pub const fn new(id: Id, zone: ShippingZone, postal_code: Nat) -> Self
pub const fn try_new( id: Id, zone: ShippingZone, postal_code: Nat, ) -> Result<Self, ValidationError>
pub fn id(&self) -> <Id as FieldAccess>::Output<'_>
pub fn zone(&self) -> <ShippingZone as FieldAccess>::Output<'_>
pub fn postal_code(&self) -> <Nat as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for ShippingDestination
impl Clone for ShippingDestination
Source§fn clone(&self) -> ShippingDestination
fn clone(&self) -> ShippingDestination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShippingDestination
impl Debug for ShippingDestination
Source§impl PartialEq for ShippingDestination
impl PartialEq for ShippingDestination
Source§fn eq(&self, other: &ShippingDestination) -> bool
fn eq(&self, other: &ShippingDestination) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShippingDestination
impl StructuralPartialEq for ShippingDestination
Auto Trait Implementations§
impl Freeze for ShippingDestination
impl RefUnwindSafe for ShippingDestination
impl Send for ShippingDestination
impl Sync for ShippingDestination
impl Unpin for ShippingDestination
impl UnsafeUnpin for ShippingDestination
impl UnwindSafe for ShippingDestination
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