pub struct CustomerOutput {
pub id: String,
pub email: String,
pub first_name: String,
pub last_name: String,
pub phone: Option<String>,
pub status: String,
pub accepts_marketing: bool,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§email: String§first_name: String§last_name: String§phone: Option<String>§status: String§accepts_marketing: bool§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for CustomerOutput
impl Clone for CustomerOutput
Source§fn clone(&self) -> CustomerOutput
fn clone(&self) -> CustomerOutput
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 CustomerOutput
impl<'de> Deserialize<'de> for CustomerOutput
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 From<Customer> for CustomerOutput
impl From<Customer> for CustomerOutput
Source§impl FromNapiValue for CustomerOutput
impl FromNapiValue for CustomerOutput
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 CustomerOutput
impl Serialize for CustomerOutput
Source§impl ToNapiValue for CustomerOutput
impl ToNapiValue for CustomerOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CustomerOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CustomerOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CustomerOutput
impl TypeName for CustomerOutput
Source§impl ValidateNapiValue for CustomerOutput
impl ValidateNapiValue for CustomerOutput
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 CustomerOutput
impl RefUnwindSafe for CustomerOutput
impl Send for CustomerOutput
impl Sync for CustomerOutput
impl Unpin for CustomerOutput
impl UnsafeUnpin for CustomerOutput
impl UnwindSafe for CustomerOutput
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