pub struct CreateCustomerInput {
pub email: String,
pub first_name: String,
pub last_name: String,
pub phone: Option<String>,
pub accepts_marketing: Option<bool>,
}Fields§
§email: String§first_name: String§last_name: String§phone: Option<String>§accepts_marketing: Option<bool>Trait Implementations§
Source§impl Clone for CreateCustomerInput
impl Clone for CreateCustomerInput
Source§fn clone(&self) -> CreateCustomerInput
fn clone(&self) -> CreateCustomerInput
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<'de> Deserialize<'de> for CreateCustomerInput
impl<'de> Deserialize<'de> for CreateCustomerInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNapiValue for CreateCustomerInput
impl FromNapiValue for CreateCustomerInput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl Serialize for CreateCustomerInput
impl Serialize for CreateCustomerInput
Source§impl ToNapiValue for CreateCustomerInput
impl ToNapiValue for CreateCustomerInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CreateCustomerInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CreateCustomerInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CreateCustomerInput
impl TypeName for CreateCustomerInput
Source§impl ValidateNapiValue for CreateCustomerInput
impl ValidateNapiValue for CreateCustomerInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for CreateCustomerInput
impl RefUnwindSafe for CreateCustomerInput
impl Send for CreateCustomerInput
impl Sync for CreateCustomerInput
impl Unpin for CreateCustomerInput
impl UnsafeUnpin for CreateCustomerInput
impl UnwindSafe for CreateCustomerInput
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