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