pub struct Customer { /* private fields */ }Implementations§
Source§impl Customer
impl Customer
pub const fn new( id: CustomerId, kind: CustomerKind, wholesale_approved: bool, ) -> Self
pub const fn try_new( id: CustomerId, kind: CustomerKind, wholesale_approved: bool, ) -> Result<Self, ValidationError>
pub fn id(&self) -> <CustomerId as FieldAccess>::Output<'_>
pub fn kind(&self) -> <CustomerKind as FieldAccess>::Output<'_>
pub fn wholesale_approved(&self) -> <bool as FieldAccess>::Output<'_>
Trait Implementations§
impl Eq for Customer
impl StructuralPartialEq for Customer
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnsafeUnpin for Customer
impl UnwindSafe for Customer
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