pub struct GetRatesRequest {Show 13 fields
pub ship_to: Option<Box<Address>>,
pub ship_from: Box<Address>,
pub return_to: Option<Box<Address>>,
pub ship_date: Option<String>,
pub shipper_instruction: Option<Box<ShipperInstruction>>,
pub packages: Vec<Package>,
pub value_added_services: Option<Box<ValueAddedServiceDetails>>,
pub tax_details: Option<Vec<TaxDetail>>,
pub channel_details: Box<ChannelDetails>,
pub client_reference_details: Option<Vec<ClientReferenceDetail>>,
pub shipment_type: Option<ShipmentType>,
pub destination_access_point_details: Option<Box<AccessPointDetails>>,
pub carrier_accounts: Option<Vec<CarrierAccount>>,
}Expand description
GetRatesRequest : The request schema for the getRates operation. When the channelType is Amazon, the shipTo address is not required and will be ignored.
Fields§
§ship_to: Option<Box<Address>>§ship_from: Box<Address>§return_to: Option<Box<Address>>§ship_date: Option<String>The ship date and time (the requested pickup). This defaults to the current date and time.
shipper_instruction: Option<Box<ShipperInstruction>>§packages: Vec<Package>A list of packages to be shipped through a shipping service offering.
value_added_services: Option<Box<ValueAddedServiceDetails>>§tax_details: Option<Vec<TaxDetail>>A list of tax detail information.
channel_details: Box<ChannelDetails>§client_reference_details: Option<Vec<ClientReferenceDetail>>Object to pass additional information about the MCI Integrator shipperType: List of ClientReferenceDetail
shipment_type: Option<ShipmentType>§destination_access_point_details: Option<Box<AccessPointDetails>>§carrier_accounts: Option<Vec<CarrierAccount>>A list of CarrierAccounts
Implementations§
Source§impl GetRatesRequest
impl GetRatesRequest
Sourcepub fn new(
ship_from: Address,
packages: Vec<Package>,
channel_details: ChannelDetails,
) -> GetRatesRequest
pub fn new( ship_from: Address, packages: Vec<Package>, channel_details: ChannelDetails, ) -> GetRatesRequest
The request schema for the getRates operation. When the channelType is Amazon, the shipTo address is not required and will be ignored.
Trait Implementations§
Source§impl Clone for GetRatesRequest
impl Clone for GetRatesRequest
Source§fn clone(&self) -> GetRatesRequest
fn clone(&self) -> GetRatesRequest
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 GetRatesRequest
impl Debug for GetRatesRequest
Source§impl Default for GetRatesRequest
impl Default for GetRatesRequest
Source§fn default() -> GetRatesRequest
fn default() -> GetRatesRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetRatesRequest
impl<'de> Deserialize<'de> for GetRatesRequest
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 GetRatesRequest
impl PartialEq for GetRatesRequest
Source§impl Serialize for GetRatesRequest
impl Serialize for GetRatesRequest
impl StructuralPartialEq for GetRatesRequest
Auto Trait Implementations§
impl Freeze for GetRatesRequest
impl RefUnwindSafe for GetRatesRequest
impl Send for GetRatesRequest
impl Sync for GetRatesRequest
impl Unpin for GetRatesRequest
impl UnsafeUnpin for GetRatesRequest
impl UnwindSafe for GetRatesRequest
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