Struct billecta::OrderActionRecord
source · pub struct OrderActionRecord {
pub product_public_id: Option<Uuid>,
pub article_number: Option<String>,
pub article_description: Option<String>,
pub quantity: i64,
pub units: Option<String>,
pub vat: f64,
pub unit_price: Option<Amount>,
pub discount_amount: Option<Amount>,
pub record_type: OrderRecordType,
pub total_vat_amount: Option<Amount>,
pub total_amount: Option<Amount>,
}
Fields§
§product_public_id: Option<Uuid>
§article_number: Option<String>
§article_description: Option<String>
§quantity: i64
§units: Option<String>
§vat: f64
§unit_price: Option<Amount>
§discount_amount: Option<Amount>
§record_type: OrderRecordType
§total_vat_amount: Option<Amount>
§total_amount: Option<Amount>
Implementations§
source§impl OrderActionRecord
impl OrderActionRecord
pub fn new(quantity: i64, vat: f64, record_type: OrderRecordType) -> Self
Trait Implementations§
source§impl Clone for OrderActionRecord
impl Clone for OrderActionRecord
source§fn clone(&self) -> OrderActionRecord
fn clone(&self) -> OrderActionRecord
Returns a copy 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 Debug for OrderActionRecord
impl Debug for OrderActionRecord
source§impl<'de> Deserialize<'de> for OrderActionRecord
impl<'de> Deserialize<'de> for OrderActionRecord
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
Auto Trait Implementations§
impl Freeze for OrderActionRecord
impl RefUnwindSafe for OrderActionRecord
impl Send for OrderActionRecord
impl Sync for OrderActionRecord
impl Unpin for OrderActionRecord
impl UnwindSafe for OrderActionRecord
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