pub struct PurchaseOrderOutput {
pub id: String,
pub po_number: String,
pub supplier_id: String,
pub status: String,
pub subtotal: f64,
pub total: f64,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§po_number: String§supplier_id: String§status: String§subtotal: f64§total: f64§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for PurchaseOrderOutput
impl Clone for PurchaseOrderOutput
Source§fn clone(&self) -> PurchaseOrderOutput
fn clone(&self) -> PurchaseOrderOutput
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 PurchaseOrderOutput
impl<'de> Deserialize<'de> for PurchaseOrderOutput
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<PurchaseOrder> for PurchaseOrderOutput
impl From<PurchaseOrder> for PurchaseOrderOutput
Source§fn from(po: PurchaseOrder) -> Self
fn from(po: PurchaseOrder) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for PurchaseOrderOutput
impl FromNapiValue for PurchaseOrderOutput
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 PurchaseOrderOutput
impl Serialize for PurchaseOrderOutput
Source§impl ToNapiValue for PurchaseOrderOutput
impl ToNapiValue for PurchaseOrderOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: PurchaseOrderOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: PurchaseOrderOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for PurchaseOrderOutput
impl TypeName for PurchaseOrderOutput
Source§impl ValidateNapiValue for PurchaseOrderOutput
impl ValidateNapiValue for PurchaseOrderOutput
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 PurchaseOrderOutput
impl RefUnwindSafe for PurchaseOrderOutput
impl Send for PurchaseOrderOutput
impl Sync for PurchaseOrderOutput
impl Unpin for PurchaseOrderOutput
impl UnsafeUnpin for PurchaseOrderOutput
impl UnwindSafe for PurchaseOrderOutput
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