pub struct RetailLine { /* private fields */ }Implementations§
Source§impl RetailLine
impl RetailLine
pub fn try_new( entry: TradePriceBookEntry, quantity: Quantity, discount: Money, ) -> DomainResult<Self>
Trait Implementations§
Source§impl Clone for RetailLine
impl Clone for RetailLine
Source§fn clone(&self) -> RetailLine
fn clone(&self) -> RetailLine
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 RetailLine
impl Debug for RetailLine
Source§impl PartialEq for RetailLine
impl PartialEq for RetailLine
Source§fn eq(&self, other: &RetailLine) -> bool
fn eq(&self, other: &RetailLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RetailLine
impl StructuralPartialEq for RetailLine
Auto Trait Implementations§
impl Freeze for RetailLine
impl RefUnwindSafe for RetailLine
impl Send for RetailLine
impl Sync for RetailLine
impl Unpin for RetailLine
impl UnsafeUnpin for RetailLine
impl UnwindSafe for RetailLine
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