pub struct CustomerCreate<'a> { /* private fields */ }
Expand description
Request builder for creating customers in Paddle API.
Implementations§
Source§impl<'a> CustomerCreate<'a>
impl<'a> CustomerCreate<'a>
pub fn new(client: &'a Paddle, email: String) -> Self
Sourcepub fn name(&mut self, name: impl Into<String>) -> &mut Self
pub fn name(&mut self, name: impl Into<String>) -> &mut Self
Full name of this customer. Required when creating transactions where collection_mode
is manual
(invoices).
Sourcepub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
pub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
Your own structured key-value data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CustomerCreate<'a>
impl<'a> RefUnwindSafe for CustomerCreate<'a>
impl<'a> Send for CustomerCreate<'a>
impl<'a> Sync for CustomerCreate<'a>
impl<'a> Unpin for CustomerCreate<'a>
impl<'a> UnwindSafe for CustomerCreate<'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