pub enum ShippingPreference {
GetFromFile,
NoShipping,
SetProvidedAddress,
}
Expand description
The shipping preference:
- Displays the shipping address to the customer.
- Enables the customer to choose an address on the PayPal site.
- Restricts the customer from changing the address during the payment-approval process.
Variants§
GetFromFile
Use the customer-provided shipping address on the PayPal site.
NoShipping
Redact the shipping address from the PayPal site. Recommended for digital goods.
SetProvidedAddress
Use the merchant-provided address. The customer cannot change this address on the PayPal site.
Implementations§
Trait Implementations§
source§impl AsRef<str> for ShippingPreference
impl AsRef<str> for ShippingPreference
source§impl Clone for ShippingPreference
impl Clone for ShippingPreference
source§fn clone(&self) -> ShippingPreference
fn clone(&self) -> ShippingPreference
Returns a copy 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 ShippingPreference
impl Debug for ShippingPreference
source§impl<'de> Deserialize<'de> for ShippingPreference
impl<'de> Deserialize<'de> for ShippingPreference
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 Display for ShippingPreference
impl Display for ShippingPreference
source§impl PartialEq<ShippingPreference> for ShippingPreference
impl PartialEq<ShippingPreference> for ShippingPreference
source§fn eq(&self, other: &ShippingPreference) -> bool
fn eq(&self, other: &ShippingPreference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ShippingPreference
impl Serialize for ShippingPreference
impl Copy for ShippingPreference
impl Eq for ShippingPreference
impl StructuralEq for ShippingPreference
impl StructuralPartialEq for ShippingPreference
Auto Trait Implementations§
impl RefUnwindSafe for ShippingPreference
impl Send for ShippingPreference
impl Sync for ShippingPreference
impl Unpin for ShippingPreference
impl UnwindSafe for ShippingPreference
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.