pub struct ShippingService {Show 13 fields
pub shipping_service_name: String,
pub carrier_name: String,
pub shipping_service_id: String,
pub shipping_service_offer_id: String,
pub ship_date: String,
pub earliest_estimated_delivery_date: Option<String>,
pub latest_estimated_delivery_date: Option<String>,
pub rate: Box<CurrencyAmount>,
pub shipping_service_options: Box<ShippingServiceOptions>,
pub available_shipping_service_options: Option<Box<AvailableShippingServiceOptions>>,
pub available_label_formats: Option<Vec<LabelFormat>>,
pub available_format_options_for_label: Option<Vec<LabelFormatOption>>,
pub requires_additional_seller_inputs: bool,
}Expand description
ShippingService : A shipping service offer made by a carrier.
Fields
shipping_service_name: StringA plain text representation of a carrier’s shipping service. For example, "UPS Ground" or "FedEx Standard Overnight".
carrier_name: StringThe name of the carrier.
shipping_service_id: StringAn Amazon-defined shipping service identifier.
shipping_service_offer_id: StringAn Amazon-defined shipping service offer identifier.
ship_date: Stringearliest_estimated_delivery_date: Option<String>latest_estimated_delivery_date: Option<String>rate: Box<CurrencyAmount>shipping_service_options: Box<ShippingServiceOptions>available_shipping_service_options: Option<Box<AvailableShippingServiceOptions>>available_label_formats: Option<Vec<LabelFormat>>List of label formats.
available_format_options_for_label: Option<Vec<LabelFormatOption>>The available label formats.
requires_additional_seller_inputs: boolWhen true, additional seller inputs are required.
Implementations
sourceimpl ShippingService
impl ShippingService
sourcepub fn new(
shipping_service_name: String,
carrier_name: String,
shipping_service_id: String,
shipping_service_offer_id: String,
ship_date: String,
rate: CurrencyAmount,
shipping_service_options: ShippingServiceOptions,
requires_additional_seller_inputs: bool
) -> ShippingService
pub fn new(
shipping_service_name: String,
carrier_name: String,
shipping_service_id: String,
shipping_service_offer_id: String,
ship_date: String,
rate: CurrencyAmount,
shipping_service_options: ShippingServiceOptions,
requires_additional_seller_inputs: bool
) -> ShippingService
A shipping service offer made by a carrier.
Trait Implementations
sourceimpl Clone for ShippingService
impl Clone for ShippingService
sourcefn clone(&self) -> ShippingService
fn clone(&self) -> ShippingService
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 ShippingService
impl Debug for ShippingService
sourceimpl Default for ShippingService
impl Default for ShippingService
sourcefn default() -> ShippingService
fn default() -> ShippingService
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ShippingService
impl<'de> Deserialize<'de> for ShippingService
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<ShippingService> for ShippingService
impl PartialEq<ShippingService> for ShippingService
sourcefn eq(&self, other: &ShippingService) -> bool
fn eq(&self, other: &ShippingService) -> bool
sourceimpl Serialize for ShippingService
impl Serialize for ShippingService
impl StructuralPartialEq for ShippingService
Auto Trait Implementations
impl RefUnwindSafe for ShippingService
impl Send for ShippingService
impl Sync for ShippingService
impl Unpin for ShippingService
impl UnwindSafe for ShippingService
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