Struct offchain::types::PaymentActionObject
source · pub struct PaymentActionObject {
pub amount: u64,
pub currency: String,
pub action: ActionType,
pub timestamp: u64,
}
Fields§
§amount: u64
Amount 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: String
One of the supported on-chain currency types - ex. XUS, etc.
action: ActionType
Populated in the request. This value indicates the requested action to perform, and the only valid value is charge.
timestamp: u64
Unix time indicating the time that the payment Command was created.
Trait Implementations§
source§impl Clone for PaymentActionObject
impl Clone for PaymentActionObject
source§fn clone(&self) -> PaymentActionObject
fn clone(&self) -> PaymentActionObject
Returns a copy 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 PaymentActionObject
impl Debug for PaymentActionObject
source§impl<'de> Deserialize<'de> for PaymentActionObject
impl<'de> Deserialize<'de> for PaymentActionObject
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
source§impl PartialEq<PaymentActionObject> for PaymentActionObject
impl PartialEq<PaymentActionObject> for PaymentActionObject
source§fn eq(&self, other: &PaymentActionObject) -> bool
fn eq(&self, other: &PaymentActionObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PaymentActionObject
impl Serialize for PaymentActionObject
impl Eq for PaymentActionObject
impl StructuralEq for PaymentActionObject
impl StructuralPartialEq for PaymentActionObject
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.