Struct amazon_sp_shipping::models::service_rate::ServiceRate
source · [−]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: ServiceTypepromise: Box<ShippingPromiseSet>Implementations
sourceimpl 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
sourceimpl Clone for ServiceRate
impl Clone for ServiceRate
sourcefn clone(&self) -> ServiceRate
fn clone(&self) -> ServiceRate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ServiceRate
impl Debug for ServiceRate
sourceimpl Default for ServiceRate
impl Default for ServiceRate
sourcefn default() -> ServiceRate
fn default() -> ServiceRate
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ServiceRate
impl<'de> Deserialize<'de> for ServiceRate
sourcefn 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
sourceimpl PartialEq<ServiceRate> for ServiceRate
impl PartialEq<ServiceRate> for ServiceRate
sourcefn eq(&self, other: &ServiceRate) -> bool
fn eq(&self, other: &ServiceRate) -> bool
sourceimpl Serialize for ServiceRate
impl Serialize for ServiceRate
impl StructuralPartialEq for ServiceRate
Auto Trait Implementations
impl RefUnwindSafe for ServiceRate
impl Send for ServiceRate
impl Sync for ServiceRate
impl Unpin for ServiceRate
impl UnwindSafe for ServiceRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more