pub struct CreateCheckoutSessionNameCollectionBusiness {
pub enabled: bool,
pub optional: Option<bool>,
}Expand description
Controls settings applied for collecting the customer’s business name on the session.
Fields§
§enabled: boolEnable business name collection on the Checkout Session. Defaults to false.
optional: Option<bool>Whether the customer is required to provide a business name before completing the Checkout Session.
Defaults to false.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionNameCollectionBusiness
impl Clone for CreateCheckoutSessionNameCollectionBusiness
Source§fn clone(&self) -> CreateCheckoutSessionNameCollectionBusiness
fn clone(&self) -> CreateCheckoutSessionNameCollectionBusiness
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 Copy for CreateCheckoutSessionNameCollectionBusiness
impl Eq for CreateCheckoutSessionNameCollectionBusiness
impl StructuralPartialEq for CreateCheckoutSessionNameCollectionBusiness
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionNameCollectionBusiness
impl RefUnwindSafe for CreateCheckoutSessionNameCollectionBusiness
impl Send for CreateCheckoutSessionNameCollectionBusiness
impl Sync for CreateCheckoutSessionNameCollectionBusiness
impl Unpin for CreateCheckoutSessionNameCollectionBusiness
impl UnsafeUnpin for CreateCheckoutSessionNameCollectionBusiness
impl UnwindSafe for CreateCheckoutSessionNameCollectionBusiness
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