pub struct CreateCheckoutSessionShippingAddressCollection {
pub allowed_countries: Vec<CreateCheckoutSessionShippingAddressCollectionAllowedCountries>,
}Expand description
When set, provides configuration for Checkout to collect a shipping address from a customer.
Fields§
§allowed_countries: Vec<CreateCheckoutSessionShippingAddressCollectionAllowedCountries>An array of two-letter ISO country codes representing which countries Checkout should provide as options for. shipping locations.
Implementations§
Source§impl CreateCheckoutSessionShippingAddressCollection
impl CreateCheckoutSessionShippingAddressCollection
pub fn new( allowed_countries: impl Into<Vec<CreateCheckoutSessionShippingAddressCollectionAllowedCountries>>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionShippingAddressCollection
impl Clone for CreateCheckoutSessionShippingAddressCollection
Source§fn clone(&self) -> CreateCheckoutSessionShippingAddressCollection
fn clone(&self) -> CreateCheckoutSessionShippingAddressCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionShippingAddressCollection
impl StructuralPartialEq for CreateCheckoutSessionShippingAddressCollection
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionShippingAddressCollection
impl RefUnwindSafe for CreateCheckoutSessionShippingAddressCollection
impl Send for CreateCheckoutSessionShippingAddressCollection
impl Sync for CreateCheckoutSessionShippingAddressCollection
impl Unpin for CreateCheckoutSessionShippingAddressCollection
impl UnsafeUnpin for CreateCheckoutSessionShippingAddressCollection
impl UnwindSafe for CreateCheckoutSessionShippingAddressCollection
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