pub struct CreateCustomerSession<'a> {
pub components: CreateCustomerSessionComponents,
pub customer: CustomerId,
pub expand: &'a [&'a str],
}
Expand description
The parameters for CustomerSession::create
.
Fields§
§components: CreateCustomerSessionComponents
Configuration for each component.
Exactly 1 component must be enabled.
customer: CustomerId
The ID of an existing customer for which to create the customer session.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
Implementations§
Source§impl<'a> CreateCustomerSession<'a>
impl<'a> CreateCustomerSession<'a>
pub fn new( components: CreateCustomerSessionComponents, customer: CustomerId, ) -> Self
Trait Implementations§
Source§impl<'a> Clone for CreateCustomerSession<'a>
impl<'a> Clone for CreateCustomerSession<'a>
Source§fn clone(&self) -> CreateCustomerSession<'a>
fn clone(&self) -> CreateCustomerSession<'a>
Returns a duplicate 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<'a> Debug for CreateCustomerSession<'a>
impl<'a> Debug for CreateCustomerSession<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateCustomerSession<'a>
impl<'a> RefUnwindSafe for CreateCustomerSession<'a>
impl<'a> Send for CreateCustomerSession<'a>
impl<'a> Sync for CreateCustomerSession<'a>
impl<'a> Unpin for CreateCustomerSession<'a>
impl<'a> UnwindSafe for CreateCustomerSession<'a>
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