Struct billecta::SelfInvoiceActionRecord
source · pub struct SelfInvoiceActionRecord {Show 16 fields
pub product_public_id: Option<Uuid>,
pub sequence_no: i32,
pub units: Option<String>,
pub article_description: Option<String>,
pub article_number: Option<String>,
pub quantity: Option<f64>,
pub unit_price: Option<Amount>,
pub discount_amount: Option<Amount>,
pub discount_percentage: f64,
pub discount_type: DiscountType,
pub vat: f64,
pub record_type: RecordType,
pub cost_center: Option<String>,
pub project: Option<String>,
pub hidden: bool,
pub dimensions: Vec<DimensionCode>,
}
Fields§
§product_public_id: Option<Uuid>
§sequence_no: i32
§units: Option<String>
§article_description: Option<String>
§article_number: Option<String>
§quantity: Option<f64>
§unit_price: Option<Amount>
§discount_amount: Option<Amount>
§discount_percentage: f64
§discount_type: DiscountType
§vat: f64
§record_type: RecordType
§cost_center: Option<String>
§project: Option<String>
§dimensions: Vec<DimensionCode>
Implementations§
source§impl SelfInvoiceActionRecord
impl SelfInvoiceActionRecord
pub fn new( sequence_no: i32, discount_percentage: f64, discount_type: DiscountType, vat: f64, record_type: RecordType, hidden: bool ) -> Self
Trait Implementations§
source§impl Clone for SelfInvoiceActionRecord
impl Clone for SelfInvoiceActionRecord
source§fn clone(&self) -> SelfInvoiceActionRecord
fn clone(&self) -> SelfInvoiceActionRecord
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 SelfInvoiceActionRecord
impl Debug for SelfInvoiceActionRecord
source§impl<'de> Deserialize<'de> for SelfInvoiceActionRecord
impl<'de> Deserialize<'de> for SelfInvoiceActionRecord
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 SelfInvoiceActionRecord
impl RefUnwindSafe for SelfInvoiceActionRecord
impl Send for SelfInvoiceActionRecord
impl Sync for SelfInvoiceActionRecord
impl Unpin for SelfInvoiceActionRecord
impl UnwindSafe for SelfInvoiceActionRecord
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