pub struct Warranties { /* private fields */ }Implementations§
Source§impl Warranties
impl Warranties
Source§impl Warranties
impl Warranties
pub fn into_reference( val: Warranties, env: Env, ) -> Result<Reference<Warranties>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Warranties>>
Source§impl Warranties
impl Warranties
pub async fn create(&self, input: CreateWarrantyInput) -> Result<WarrantyOutput>
pub async fn get(&self, id: String) -> Result<Option<WarrantyOutput>>
pub async fn list(&self) -> Result<Vec<WarrantyOutput>>
pub async fn create_claim( &self, input: CreateWarrantyClaimInput, ) -> Result<WarrantyClaimOutput>
pub async fn approve_claim(&self, id: String) -> Result<WarrantyClaimOutput>
pub async fn deny_claim( &self, id: String, reason: String, ) -> Result<WarrantyClaimOutput>
pub async fn complete_claim( &self, id: String, resolution: String, ) -> Result<WarrantyClaimOutput>
pub async fn count(&self) -> Result<u32>
Trait Implementations§
Source§impl FromNapiMutRef for Warranties
impl FromNapiMutRef for Warranties
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for Warranties
impl FromNapiRef for Warranties
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &Warranties
impl FromNapiValue for &Warranties
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 FromNapiValue for &mut Warranties
impl FromNapiValue for &mut Warranties
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 ToNapiValue for Warranties
impl ToNapiValue for Warranties
Source§unsafe fn to_napi_value(env: napi_env, val: Warranties) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Warranties) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &Warranties
impl TypeName for &Warranties
Source§impl TypeName for &mut Warranties
impl TypeName for &mut Warranties
Source§impl TypeName for Warranties
impl TypeName for Warranties
Source§impl ValidateNapiValue for &Warranties
impl ValidateNapiValue for &Warranties
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut Warranties
impl ValidateNapiValue for &mut Warranties
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for Warranties
impl !RefUnwindSafe for Warranties
impl Send for Warranties
impl Sync for Warranties
impl Unpin for Warranties
impl UnsafeUnpin for Warranties
impl !UnwindSafe for Warranties
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