#[non_exhaustive]pub enum CreditNoteLineItemType {
CustomLineItem,
InvoiceLineItem,
Unknown(String),
}Expand description
The type of the credit note line item, one of invoice_line_item or custom_line_item.
When the type is invoice_line_item there is an additional invoice_line_item property on the resource the value of which is the id of the credited line item on the invoice.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CustomLineItem
InvoiceLineItem
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CreditNoteLineItemType
impl Clone for CreditNoteLineItemType
Source§fn clone(&self) -> CreditNoteLineItemType
fn clone(&self) -> CreditNoteLineItemType
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 CreditNoteLineItemType
Available on non-crate feature redact-generated-debug only.
impl Debug for CreditNoteLineItemType
Available on non-crate feature
redact-generated-debug only.Source§impl Deserialize for CreditNoteLineItemType
impl Deserialize for CreditNoteLineItemType
Source§impl Display for CreditNoteLineItemType
impl Display for CreditNoteLineItemType
Source§impl FromStr for CreditNoteLineItemType
impl FromStr for CreditNoteLineItemType
Source§impl FromValueOpt for CreditNoteLineItemType
impl FromValueOpt for CreditNoteLineItemType
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for CreditNoteLineItemType
impl PartialEq for CreditNoteLineItemType
Source§fn eq(&self, other: &CreditNoteLineItemType) -> bool
fn eq(&self, other: &CreditNoteLineItemType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreditNoteLineItemType
impl StructuralPartialEq for CreditNoteLineItemType
Auto Trait Implementations§
impl Freeze for CreditNoteLineItemType
impl RefUnwindSafe for CreditNoteLineItemType
impl Send for CreditNoteLineItemType
impl Sync for CreditNoteLineItemType
impl Unpin for CreditNoteLineItemType
impl UnsafeUnpin for CreditNoteLineItemType
impl UnwindSafe for CreditNoteLineItemType
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