pub struct UpdatePayment {
pub status: Option<PaymentTransactionStatus>,
pub external_id: Option<String>,
pub failure_reason: Option<String>,
pub failure_code: Option<String>,
pub metadata: Option<String>,
pub tx_hash: Option<String>,
pub block_number: Option<i64>,
pub confirmations: Option<i32>,
pub ves_intent_id: Option<String>,
}Expand description
Input for updating a payment
Fields§
§status: Option<PaymentTransactionStatus>Update status
external_id: Option<String>Update external ID
failure_reason: Option<String>Update failure reason
failure_code: Option<String>Update failure code
metadata: Option<String>Update metadata
tx_hash: Option<String>On-chain transaction hash (set after broadcast)
block_number: Option<i64>Block number (set after confirmation)
confirmations: Option<i32>Number of confirmations
ves_intent_id: Option<String>VES payment intent ID
Trait Implementations§
Source§impl Clone for UpdatePayment
impl Clone for UpdatePayment
Source§fn clone(&self) -> UpdatePayment
fn clone(&self) -> UpdatePayment
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 UpdatePayment
impl Debug for UpdatePayment
Source§impl Default for UpdatePayment
impl Default for UpdatePayment
Source§fn default() -> UpdatePayment
fn default() -> UpdatePayment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePayment
impl<'de> Deserialize<'de> for UpdatePayment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdatePayment
impl Serialize for UpdatePayment
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdatePayment
impl RefUnwindSafe for UpdatePayment
impl Send for UpdatePayment
impl Sync for UpdatePayment
impl Unpin for UpdatePayment
impl UnsafeUnpin for UpdatePayment
impl UnwindSafe for UpdatePayment
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