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