pub struct WarrantyOutput {
pub id: String,
pub warranty_number: String,
pub customer_id: String,
pub product_id: Option<String>,
pub order_id: Option<String>,
pub status: String,
pub warranty_type: String,
pub start_date: String,
pub end_date: String,
pub created_at: String,
}Fields§
§id: String§warranty_number: String§customer_id: String§product_id: Option<String>§order_id: Option<String>§status: String§warranty_type: String§start_date: String§end_date: String§created_at: StringTrait Implementations§
Source§impl Clone for WarrantyOutput
impl Clone for WarrantyOutput
Source§fn clone(&self) -> WarrantyOutput
fn clone(&self) -> WarrantyOutput
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 WarrantyOutput
impl<'de> Deserialize<'de> for WarrantyOutput
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<Warranty> for WarrantyOutput
impl From<Warranty> for WarrantyOutput
Source§impl FromNapiValue for WarrantyOutput
impl FromNapiValue for WarrantyOutput
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 WarrantyOutput
impl Serialize for WarrantyOutput
Source§impl ToNapiValue for WarrantyOutput
impl ToNapiValue for WarrantyOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: WarrantyOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: WarrantyOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for WarrantyOutput
impl TypeName for WarrantyOutput
Source§impl ValidateNapiValue for WarrantyOutput
impl ValidateNapiValue for WarrantyOutput
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 WarrantyOutput
impl RefUnwindSafe for WarrantyOutput
impl Send for WarrantyOutput
impl Sync for WarrantyOutput
impl Unpin for WarrantyOutput
impl UnsafeUnpin for WarrantyOutput
impl UnwindSafe for WarrantyOutput
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