pub struct ReturnLine { /* private fields */ }Implementations§
Source§impl ReturnLine
impl ReturnLine
pub const fn new(sku: Sku, quantity: Quantity, refund_amount: Money) -> Self
pub const fn try_new( sku: Sku, quantity: Quantity, refund_amount: Money, ) -> Result<Self, ValidationError>
pub fn sku(&self) -> <Sku as FieldAccess>::Output<'_>
pub fn quantity(&self) -> <Quantity as FieldAccess>::Output<'_>
pub fn refund_amount(&self) -> <Money as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for ReturnLine
impl Clone for ReturnLine
Source§fn clone(&self) -> ReturnLine
fn clone(&self) -> ReturnLine
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 ReturnLine
impl Debug for ReturnLine
Source§impl PartialEq for ReturnLine
impl PartialEq for ReturnLine
Source§fn eq(&self, other: &ReturnLine) -> bool
fn eq(&self, other: &ReturnLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReturnLine
impl StructuralPartialEq for ReturnLine
Auto Trait Implementations§
impl Freeze for ReturnLine
impl RefUnwindSafe for ReturnLine
impl Send for ReturnLine
impl Sync for ReturnLine
impl Unpin for ReturnLine
impl UnsafeUnpin for ReturnLine
impl UnwindSafe for ReturnLine
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