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