pub struct NetUsdChangeCriterion {
pub change_cents: i64,
pub operator: NetUsdChangeCriterionOperator,
pub type_: NetUsdChangeCriterionType,
}
Expand description
A schema for specifying a criterion for the USD denominated asset transfer or exposure for a transaction. This includes native transfers, as well as token transfers.
JSON schema
{
"title": "NetUSDChangeCriterion",
"description": "A schema for specifying a criterion for the USD denominated asset transfer or exposure for a transaction. This includes native transfers, as well as token transfers.",
"type": "object",
"required": [
"changeCents",
"operator",
"type"
],
"properties": {
"changeCents": {
"description": "The amount of USD, in cents, that the total value of a transaction's asset transfer should be compared to.",
"examples": [
10000
],
"type": "integer"
},
"operator": {
"description": "The operator to use for the comparison. The total value of a transaction's asset transfer will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side.",
"examples": [
"<="
],
"type": "string",
"enum": [
"GreaterThan",
"GreaterThanOrEqual",
"LessThan",
"LessThanOrEqual",
"Equal"
]
},
"type": {
"description": "The type of criterion to use. This should be `netUSDChange`.",
"examples": [
"netUSDChange"
],
"type": "string",
"enum": [
"netUSDChange"
]
}
}
}
Fields§
§change_cents: i64
The amount of USD, in cents, that the total value of a transaction’s asset transfer should be compared to.
operator: NetUsdChangeCriterionOperator
The operator to use for the comparison. The total value of a transaction’s asset transfer will be on the left-hand side of the operator, and the changeCents
field will be on the right-hand side.
type_: NetUsdChangeCriterionType
The type of criterion to use. This should be netUSDChange
.
Implementations§
Source§impl NetUsdChangeCriterion
impl NetUsdChangeCriterion
pub fn builder() -> NetUsdChangeCriterion
Trait Implementations§
Source§impl Clone for NetUsdChangeCriterion
impl Clone for NetUsdChangeCriterion
Source§fn clone(&self) -> NetUsdChangeCriterion
fn clone(&self) -> NetUsdChangeCriterion
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 NetUsdChangeCriterion
impl Debug for NetUsdChangeCriterion
Source§impl<'de> Deserialize<'de> for NetUsdChangeCriterion
impl<'de> Deserialize<'de> for NetUsdChangeCriterion
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 From<&NetUsdChangeCriterion> for NetUsdChangeCriterion
impl From<&NetUsdChangeCriterion> for NetUsdChangeCriterion
Source§fn from(value: &NetUsdChangeCriterion) -> Self
fn from(value: &NetUsdChangeCriterion) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeCriterion> for NetUsdChangeCriterion
impl From<NetUsdChangeCriterion> for NetUsdChangeCriterion
Source§fn from(value: NetUsdChangeCriterion) -> Self
fn from(value: NetUsdChangeCriterion) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeCriterion> for SendEvmTransactionCriteriaItem
impl From<NetUsdChangeCriterion> for SendEvmTransactionCriteriaItem
Source§fn from(value: NetUsdChangeCriterion) -> Self
fn from(value: NetUsdChangeCriterion) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeCriterion> for SignEvmTransactionCriteriaItem
impl From<NetUsdChangeCriterion> for SignEvmTransactionCriteriaItem
Source§fn from(value: NetUsdChangeCriterion) -> Self
fn from(value: NetUsdChangeCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for NetUsdChangeCriterion
impl Serialize for NetUsdChangeCriterion
Source§impl TryFrom<NetUsdChangeCriterion> for NetUsdChangeCriterion
impl TryFrom<NetUsdChangeCriterion> for NetUsdChangeCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NetUsdChangeCriterion) -> Result<Self, ConversionError>
fn try_from(value: NetUsdChangeCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NetUsdChangeCriterion
impl RefUnwindSafe for NetUsdChangeCriterion
impl Send for NetUsdChangeCriterion
impl Sync for NetUsdChangeCriterion
impl Unpin for NetUsdChangeCriterion
impl UnwindSafe for NetUsdChangeCriterion
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