pub struct ServiceRate {
pub total_charge: Box<Currency>,
pub billable_weight: Box<Weight>,
pub service_type: ServiceType,
pub promise: Box<ShippingPromiseSet>,
}Expand description
ServiceRate : The specific rate for a shipping service, or null if no service available.
Fields§
§total_charge: Box<Currency>§billable_weight: Box<Weight>§service_type: ServiceType§promise: Box<ShippingPromiseSet>Implementations§
Source§impl ServiceRate
impl ServiceRate
Sourcepub fn new(
total_charge: Currency,
billable_weight: Weight,
service_type: ServiceType,
promise: ShippingPromiseSet,
) -> ServiceRate
pub fn new( total_charge: Currency, billable_weight: Weight, service_type: ServiceType, promise: ShippingPromiseSet, ) -> ServiceRate
The specific rate for a shipping service, or null if no service available.
Trait Implementations§
Source§impl Clone for ServiceRate
impl Clone for ServiceRate
Source§fn clone(&self) -> ServiceRate
fn clone(&self) -> ServiceRate
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceRate
impl Debug for ServiceRate
Source§impl Default for ServiceRate
impl Default for ServiceRate
Source§fn default() -> ServiceRate
fn default() -> ServiceRate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceRate
impl<'de> Deserialize<'de> for ServiceRate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServiceRate
impl PartialEq for ServiceRate
Source§impl Serialize for ServiceRate
impl Serialize for ServiceRate
impl StructuralPartialEq for ServiceRate
Auto Trait Implementations§
impl Freeze for ServiceRate
impl RefUnwindSafe for ServiceRate
impl Send for ServiceRate
impl Sync for ServiceRate
impl Unpin for ServiceRate
impl UnwindSafe for ServiceRate
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