pub struct ShippingOption {
pub id: String,
pub label: String,
pub type_: Option<ShippingType>,
pub amount: Option<Money>,
pub selected: bool,
}
Fields§
§id: String
A unique ID that identifies a payer-selected shipping option.
label: String
A description that the payer sees, which helps them choose an appropriate shipping option. For example, Free Shipping, USPS Priority Shipping, Expédition prioritaire USPS, or USPS yōuxiān fā huò. Localize this description to the payer’s locale.
type_: Option<ShippingType>
The method by which the payer wants to get their items.
amount: Option<Money>
The shipping cost for the selected option.
selected: bool
If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected
for the payer when they first view the shipping.options in the PayPal Checkout experience. As part of the response if a
shipping.option
contains selected=true, it represents the shippingoption that the payer selected during the course of checkout with
PayPal. Only one shipping.option can be set to selected=true.
Trait Implementations§
Source§impl Clone for ShippingOption
impl Clone for ShippingOption
Source§fn clone(&self) -> ShippingOption
fn clone(&self) -> ShippingOption
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more