Struct offchain::types::PaymentActionObject [−][src]
pub struct PaymentActionObject {
pub amount: u64,
pub currency: String,
pub action: ActionType,
pub timestamp: u64,
}Fields
amount: u64Amount of the transfer. Base units are the same as for on-chain transactions for this currency. For example, if DiemUSD is represented on-chain where “1” equals 1e-6 dollars, then “1” equals the same amount here. For any currency, the on-chain mapping must be used for amounts.
currency: StringOne of the supported on-chain currency types - ex. XUS, etc.
action: ActionTypePopulated in the request. This value indicates the requested action to perform, and the only valid value is charge.
timestamp: u64Unix time indicating the time that the payment Command was created.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PaymentActionObject
impl Send for PaymentActionObject
impl Sync for PaymentActionObject
impl Unpin for PaymentActionObject
impl UnwindSafe for PaymentActionObject
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.