pub struct CustomerCreateInput {Show 15 fields
pub business_id: String,
pub name: String,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub phone: Option<String>,
pub mobile: Option<String>,
pub fax: Option<String>,
pub toll_free: Option<String>,
pub website: Option<String>,
pub display_id: Option<String>,
pub internal_notes: Option<String>,
pub address: Option<AddressInput>,
pub currency: Option<CurrencyCode>,
pub shipping_details: Option<CustomerShippingDetailsInput>,
}Expand description
Input for creating a customer.
Fields§
§business_id: String§name: String§first_name: Option<String>§last_name: Option<String>§email: Option<String>§phone: Option<String>§mobile: Option<String>§fax: Option<String>§toll_free: Option<String>§website: Option<String>§display_id: Option<String>§internal_notes: Option<String>§address: Option<AddressInput>§currency: Option<CurrencyCode>§shipping_details: Option<CustomerShippingDetailsInput>Implementations§
Source§impl CustomerCreateInput
impl CustomerCreateInput
Sourcepub fn new(business_id: impl Into<String>, name: impl Into<String>) -> Self
pub fn new(business_id: impl Into<String>, name: impl Into<String>) -> Self
Create with required fields.
pub fn first_name(self, v: impl Into<String>) -> Self
pub fn last_name(self, v: impl Into<String>) -> Self
pub fn email(self, v: impl Into<String>) -> Self
pub fn phone(self, v: impl Into<String>) -> Self
pub fn address(self, v: AddressInput) -> Self
pub fn currency(self, v: CurrencyCode) -> Self
Trait Implementations§
Source§impl Clone for CustomerCreateInput
impl Clone for CustomerCreateInput
Source§fn clone(&self) -> CustomerCreateInput
fn clone(&self) -> CustomerCreateInput
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 Debug for CustomerCreateInput
impl Debug for CustomerCreateInput
Auto Trait Implementations§
impl Freeze for CustomerCreateInput
impl RefUnwindSafe for CustomerCreateInput
impl Send for CustomerCreateInput
impl Sync for CustomerCreateInput
impl Unpin for CustomerCreateInput
impl UnsafeUnpin for CustomerCreateInput
impl UnwindSafe for CustomerCreateInput
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