pub struct Rate {Show 14 fields
pub rate_id: String,
pub carrier_id: String,
pub carrier_name: String,
pub service_id: String,
pub service_name: String,
pub billed_weight: Option<Box<Weight>>,
pub total_charge: Box<Currency>,
pub promise: Box<Promise>,
pub supported_document_specifications: Vec<SupportedDocumentSpecification>,
pub available_value_added_service_groups: Option<Vec<AvailableValueAddedServiceGroup>>,
pub requires_additional_inputs: bool,
pub rate_item_list: Option<Vec<RateItem>>,
pub payment_type: Option<PaymentType>,
pub benefits: Option<Box<Benefits>>,
}Expand description
Rate : The details of a shipping service offering.
Fields§
§rate_id: StringAn identifier for the rate (shipment offering) provided by a shipping service provider.
carrier_id: StringThe carrier identifier for the offering, provided by the carrier.
carrier_name: StringThe carrier name for the offering.
service_id: StringAn identifier for the shipping service.
service_name: StringThe name of the shipping service.
billed_weight: Option<Box<Weight>>§total_charge: Box<Currency>§promise: Box<Promise>§supported_document_specifications: Vec<SupportedDocumentSpecification>A list of the document specifications supported for a shipment service offering.
available_value_added_service_groups: Option<Vec<AvailableValueAddedServiceGroup>>A list of value-added services available for a shipping service offering.
requires_additional_inputs: boolWhen true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation.
rate_item_list: Option<Vec<RateItem>>A list of RateItem
payment_type: Option<PaymentType>§benefits: Option<Box<Benefits>>Implementations§
Source§impl Rate
impl Rate
Sourcepub fn new(
rate_id: String,
carrier_id: String,
carrier_name: String,
service_id: String,
service_name: String,
total_charge: Currency,
promise: Promise,
supported_document_specifications: Vec<SupportedDocumentSpecification>,
requires_additional_inputs: bool,
) -> Rate
pub fn new( rate_id: String, carrier_id: String, carrier_name: String, service_id: String, service_name: String, total_charge: Currency, promise: Promise, supported_document_specifications: Vec<SupportedDocumentSpecification>, requires_additional_inputs: bool, ) -> Rate
The details of a shipping service offering.