Struct frankenstein::objects::Invoice
source · [−]pub struct Invoice {
pub title: String,
pub description: String,
pub start_parameter: String,
pub currency: String,
pub total_amount: u32,
}
Fields
title: String
description: String
start_parameter: String
currency: String
total_amount: u32
Implementations
sourceimpl Invoice
impl Invoice
sourcepub fn builder() -> InvoiceBuilder<((), (), (), (), ())>
pub fn builder() -> InvoiceBuilder<((), (), (), (), ())>
Create a builder for building Invoice
.
On the builder, call .title(...)
, .description(...)
, .start_parameter(...)
, .currency(...)
, .total_amount(...)
to set the values of the fields.
Finally, call .build()
to create the instance of Invoice
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
sourcefn 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
impl StructuralPartialEq for Invoice
Auto Trait Implementations
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnwindSafe for Invoice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more