pub struct FulfillmentPreview {
pub shipping_speed_category: ShippingSpeedCategory,
pub scheduled_delivery_info: Option<Box<ScheduledDeliveryInfo>>,
pub is_fulfillable: bool,
pub is_cod_capable: bool,
pub estimated_shipping_weight: Option<Box<Weight>>,
pub estimated_fees: Option<Vec<Fee>>,
pub fulfillment_preview_shipments: Option<Vec<FulfillmentPreviewShipment>>,
pub unfulfillable_preview_items: Option<Vec<UnfulfillablePreviewItem>>,
pub order_unfulfillable_reasons: Option<Vec<String>>,
pub marketplace_id: String,
pub feature_constraints: Option<Vec<FeatureSettings>>,
}Expand description
FulfillmentPreview : Information about a fulfillment order preview, including delivery and fee information based on shipping method.
Fields
shipping_speed_category: ShippingSpeedCategoryscheduled_delivery_info: Option<Box<ScheduledDeliveryInfo>>is_fulfillable: boolWhen true, this fulfillment order preview is fulfillable.
is_cod_capable: boolWhen true, this fulfillment order preview is for COD (Cash On Delivery).
estimated_shipping_weight: Option<Box<Weight>>estimated_fees: Option<Vec<Fee>>An array of fee type and cost pairs.
fulfillment_preview_shipments: Option<Vec<FulfillmentPreviewShipment>>An array of fulfillment preview shipment information.
unfulfillable_preview_items: Option<Vec<UnfulfillablePreviewItem>>An array of unfulfillable preview item information.
order_unfulfillable_reasons: Option<Vec<String>>marketplace_id: StringThe marketplace the fulfillment order is placed against.
feature_constraints: Option<Vec<FeatureSettings>>A list of features and their fulfillment policies to apply to the order.
Implementations
sourceimpl FulfillmentPreview
impl FulfillmentPreview
sourcepub fn new(
shipping_speed_category: ShippingSpeedCategory,
is_fulfillable: bool,
is_cod_capable: bool,
marketplace_id: String
) -> FulfillmentPreview
pub fn new(
shipping_speed_category: ShippingSpeedCategory,
is_fulfillable: bool,
is_cod_capable: bool,
marketplace_id: String
) -> FulfillmentPreview
Information about a fulfillment order preview, including delivery and fee information based on shipping method.
Trait Implementations
sourceimpl Clone for FulfillmentPreview
impl Clone for FulfillmentPreview
sourcefn clone(&self) -> FulfillmentPreview
fn clone(&self) -> FulfillmentPreview
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 FulfillmentPreview
impl Debug for FulfillmentPreview
sourceimpl Default for FulfillmentPreview
impl Default for FulfillmentPreview
sourcefn default() -> FulfillmentPreview
fn default() -> FulfillmentPreview
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FulfillmentPreview
impl<'de> Deserialize<'de> for FulfillmentPreview
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<FulfillmentPreview> for FulfillmentPreview
impl PartialEq<FulfillmentPreview> for FulfillmentPreview
sourcefn eq(&self, other: &FulfillmentPreview) -> bool
fn eq(&self, other: &FulfillmentPreview) -> bool
sourceimpl Serialize for FulfillmentPreview
impl Serialize for FulfillmentPreview
impl StructuralPartialEq for FulfillmentPreview
Auto Trait Implementations
impl RefUnwindSafe for FulfillmentPreview
impl Send for FulfillmentPreview
impl Sync for FulfillmentPreview
impl Unpin for FulfillmentPreview
impl UnwindSafe for FulfillmentPreview
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