pub struct InvoiceSpec {
pub customer: String,
pub amount: Option<String>,
pub lines: Vec<DocumentLineSpec>,
}Expand description
An invoice to customer (B-38).
Fields§
§customer: StringThe customer’s name.
amount: Option<String>One line’s amount, exactly one of amount and lines.
lines: Vec<DocumentLineSpec>Its lines.
Trait Implementations§
Source§impl Clone for InvoiceSpec
impl Clone for InvoiceSpec
Source§fn clone(&self) -> InvoiceSpec
fn clone(&self) -> InvoiceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvoiceSpec
impl Debug for InvoiceSpec
Source§impl<'de> Deserialize<'de> for InvoiceSpec
impl<'de> Deserialize<'de> for InvoiceSpec
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 PartialEq for InvoiceSpec
impl PartialEq for InvoiceSpec
impl StructuralPartialEq for InvoiceSpec
Auto Trait Implementations§
impl Freeze for InvoiceSpec
impl RefUnwindSafe for InvoiceSpec
impl Send for InvoiceSpec
impl Sync for InvoiceSpec
impl Unpin for InvoiceSpec
impl UnsafeUnpin for InvoiceSpec
impl UnwindSafe for InvoiceSpec
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