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
sourceimpl AsRef<str> for ShippingPreference
impl AsRef<str> for ShippingPreference
sourceimpl Clone for ShippingPreference
impl Clone for ShippingPreference
sourcefn clone(&self) -> ShippingPreference
fn clone(&self) -> ShippingPreference
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 ShippingPreference
impl Debug for ShippingPreference
sourceimpl<'de> Deserialize<'de> for ShippingPreference
impl<'de> Deserialize<'de> for ShippingPreference
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 Display for ShippingPreference
impl Display for ShippingPreference
sourceimpl PartialEq<ShippingPreference> for ShippingPreference
impl PartialEq<ShippingPreference> for ShippingPreference
sourcefn eq(&self, other: &ShippingPreference) -> bool
fn eq(&self, other: &ShippingPreference) -> bool
sourceimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.