pub struct InvoiceOutput {
pub id: String,
pub invoice_number: String,
pub customer_id: String,
pub order_id: Option<String>,
pub status: String,
pub subtotal: f64,
pub tax_amount: f64,
pub total: f64,
pub amount_paid: f64,
pub due_date: String,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§invoice_number: String§customer_id: String§order_id: Option<String>§status: String§subtotal: f64§tax_amount: f64§total: f64§amount_paid: f64§due_date: String§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for InvoiceOutput
impl Clone for InvoiceOutput
Source§fn clone(&self) -> InvoiceOutput
fn clone(&self) -> InvoiceOutput
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 InvoiceOutput
impl<'de> Deserialize<'de> for InvoiceOutput
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<Invoice> for InvoiceOutput
impl From<Invoice> for InvoiceOutput
Source§impl FromNapiValue for InvoiceOutput
impl FromNapiValue for InvoiceOutput
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 InvoiceOutput
impl Serialize for InvoiceOutput
Source§impl ToNapiValue for InvoiceOutput
impl ToNapiValue for InvoiceOutput
Source§unsafe fn to_napi_value(env: napi_env, val: InvoiceOutput) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: InvoiceOutput) -> Result<napi_value>
Safety Read more
Source§impl TypeName for InvoiceOutput
impl TypeName for InvoiceOutput
Source§impl ValidateNapiValue for InvoiceOutput
impl ValidateNapiValue for InvoiceOutput
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 InvoiceOutput
impl RefUnwindSafe for InvoiceOutput
impl Send for InvoiceOutput
impl Sync for InvoiceOutput
impl Unpin for InvoiceOutput
impl UnsafeUnpin for InvoiceOutput
impl UnwindSafe for InvoiceOutput
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