pub struct CreateWarrantyInput {
pub customer_id: String,
pub product_id: Option<String>,
pub order_id: Option<String>,
pub warranty_type: Option<String>,
pub duration_months: Option<i32>,
pub serial_number: Option<String>,
}Fields§
§customer_id: String§product_id: Option<String>§order_id: Option<String>§warranty_type: Option<String>§duration_months: Option<i32>§serial_number: Option<String>Trait Implementations§
Source§impl Clone for CreateWarrantyInput
impl Clone for CreateWarrantyInput
Source§fn clone(&self) -> CreateWarrantyInput
fn clone(&self) -> CreateWarrantyInput
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 CreateWarrantyInput
impl<'de> Deserialize<'de> for CreateWarrantyInput
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 CreateWarrantyInput
impl FromNapiValue for CreateWarrantyInput
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 CreateWarrantyInput
impl Serialize for CreateWarrantyInput
Source§impl ToNapiValue for CreateWarrantyInput
impl ToNapiValue for CreateWarrantyInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CreateWarrantyInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CreateWarrantyInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CreateWarrantyInput
impl TypeName for CreateWarrantyInput
Source§impl ValidateNapiValue for CreateWarrantyInput
impl ValidateNapiValue for CreateWarrantyInput
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 CreateWarrantyInput
impl RefUnwindSafe for CreateWarrantyInput
impl Send for CreateWarrantyInput
impl Sync for CreateWarrantyInput
impl Unpin for CreateWarrantyInput
impl UnsafeUnpin for CreateWarrantyInput
impl UnwindSafe for CreateWarrantyInput
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