pub struct Invoice {
pub currency: String,
pub invoice_id: String,
pub issued_at: Option<String>,
pub kind: InvoiceKind,
pub number: String,
pub payment_status: InvoicePaymentStatus,
pub pdf_url: Option<String>,
pub subjects: Vec<InvoiceSubject>,
pub total_cents: i64,
}Fields§
§currency: StringISO currency code.
invoice_id: StringInvoice id.
issued_at: Option<String>Issue date, ISO 8601.
kind: InvoiceKind§number: StringHuman invoice number.
payment_status: InvoicePaymentStatus§pdf_url: Option<String>Downloadable PDF link.
subjects: Vec<InvoiceSubject>Known associated billing subjects, deduplicated. Empty means no known association, not organization-level charges.
total_cents: i64Invoice total in cents.
Implementations§
Source§impl<'de> Invoice
impl<'de> Invoice
pub fn deserialize<__D>(__deserializer: __D) -> Result<Invoice, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
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 Invoice
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnsafeUnpin for Invoice
impl UnwindSafe for Invoice
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