pub struct ShippingService {Show 14 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,
pub benefits: Option<Box<Benefits>>,
}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: StringDate-time formatted timestamp.
earliest_estimated_delivery_date: Option<String>Date-time formatted timestamp.
latest_estimated_delivery_date: Option<String>Date-time formatted timestamp.
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.
benefits: Option<Box<Benefits>>Implementations§
Source§impl 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§
Source§impl Clone for ShippingService
impl Clone for ShippingService
Source§fn clone(&self) -> ShippingService
fn clone(&self) -> ShippingService
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 ShippingService
impl Debug for ShippingService
Source§impl Default for ShippingService
impl Default for ShippingService
Source§fn default() -> ShippingService
fn default() -> ShippingService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShippingService
impl<'de> Deserialize<'de> for ShippingService
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 ShippingService
impl PartialEq for ShippingService
Source§impl Serialize for ShippingService
impl Serialize for ShippingService
impl StructuralPartialEq for ShippingService
Auto Trait Implementations§
impl Freeze for ShippingService
impl RefUnwindSafe for ShippingService
impl Send for ShippingService
impl Sync for ShippingService
impl Unpin for ShippingService
impl UnwindSafe for ShippingService
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