pub struct UpdateInvoiceInput {
pub payment_status: Option<String>,
pub metadata: Option<Vec<UpdateInvoiceMetadataInput>>,
}Expand description
Input for updating an invoice.
This struct contains the fields that can be updated on an existing invoice.
Fields§
§payment_status: Option<String>The payment status of the invoice.
metadata: Option<Vec<UpdateInvoiceMetadataInput>>Custom metadata for the invoice.
Implementations§
Source§impl UpdateInvoiceInput
impl UpdateInvoiceInput
Sourcepub fn with_payment_status(self, payment_status: String) -> Self
pub fn with_payment_status(self, payment_status: String) -> Self
Sets the payment status.
§Arguments
payment_status- The payment status (e.g., “succeeded”, “failed”, “pending”)
Sourcepub fn with_metadata(self, metadata: Vec<UpdateInvoiceMetadataInput>) -> Self
pub fn with_metadata(self, metadata: Vec<UpdateInvoiceMetadataInput>) -> Self
Sets the metadata entries.
Trait Implementations§
Source§impl Clone for UpdateInvoiceInput
impl Clone for UpdateInvoiceInput
Source§fn clone(&self) -> UpdateInvoiceInput
fn clone(&self) -> UpdateInvoiceInput
Returns a duplicate 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 UpdateInvoiceInput
impl Debug for UpdateInvoiceInput
Source§impl Default for UpdateInvoiceInput
impl Default for UpdateInvoiceInput
Source§fn default() -> UpdateInvoiceInput
fn default() -> UpdateInvoiceInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateInvoiceInput
impl<'de> Deserialize<'de> for UpdateInvoiceInput
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 UpdateInvoiceInput
impl RefUnwindSafe for UpdateInvoiceInput
impl Send for UpdateInvoiceInput
impl Sync for UpdateInvoiceInput
impl Unpin for UpdateInvoiceInput
impl UnwindSafe for UpdateInvoiceInput
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