pub struct Returns { /* private fields */ }Implementations§
Source§impl Returns
impl Returns
pub fn into_reference(val: Returns, env: Env) -> Result<Reference<Returns>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Returns>>
Source§impl Returns
impl Returns
pub async fn create(&self, input: CreateReturnInput) -> Result<ReturnOutput>
pub async fn get(&self, id: String) -> Result<Option<ReturnOutput>>
pub async fn approve(&self, id: String) -> Result<ReturnOutput>
pub async fn reject(&self, id: String, reason: String) -> Result<ReturnOutput>
pub async fn list(&self) -> Result<Vec<ReturnOutput>>
pub async fn count(&self) -> Result<u32>
Trait Implementations§
Source§impl FromNapiMutRef for Returns
impl FromNapiMutRef for Returns
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 Returns
impl FromNapiRef for Returns
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 &Returns
impl FromNapiValue for &Returns
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 Returns
impl FromNapiValue for &mut Returns
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 Returns
impl ToNapiValue for Returns
Source§unsafe fn to_napi_value(env: napi_env, val: Returns) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Returns) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &Returns
impl ValidateNapiValue for &Returns
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 Returns
impl ValidateNapiValue for &mut Returns
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 Returns
impl !RefUnwindSafe for Returns
impl Send for Returns
impl Sync for Returns
impl Unpin for Returns
impl UnsafeUnpin for Returns
impl !UnwindSafe for Returns
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