pub struct EthValueCriterion {
pub eth_value: EthValueCriterionEthValue,
pub operator: EthValueCriterionOperator,
pub type_: EthValueCriterionType,
}
Expand description
A schema for specifying a criterion for the value
field of an EVM transaction.
JSON schema
{
"title": "EthValueCriterion",
"description": "A schema for specifying a criterion for the `value` field of an EVM transaction.",
"type": "object",
"required": [
"ethValue",
"operator",
"type"
],
"properties": {
"ethValue": {
"description": "The amount of ETH, in wei, that the transaction's `value` field should be compared to.",
"examples": [
"1000000000000000000"
],
"type": "string",
"pattern": "^[0-9]+$"
},
"operator": {
"description": "The operator to use for the comparison. The transaction's `value` field will be on the left-hand side of the operator, and the `ethValue` 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 `ethValue`.",
"examples": [
"ethValue"
],
"type": "string",
"enum": [
"ethValue"
]
}
}
}
Fields§
§eth_value: EthValueCriterionEthValue
The amount of ETH, in wei, that the transaction’s value
field should be compared to.
operator: EthValueCriterionOperator
The operator to use for the comparison. The transaction’s value
field will be on the left-hand side of the operator, and the ethValue
field will be on the right-hand side.
type_: EthValueCriterionType
The type of criterion to use. This should be ethValue
.
Implementations§
Source§impl EthValueCriterion
impl EthValueCriterion
pub fn builder() -> EthValueCriterion
Trait Implementations§
Source§impl Clone for EthValueCriterion
impl Clone for EthValueCriterion
Source§fn clone(&self) -> EthValueCriterion
fn clone(&self) -> EthValueCriterion
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 EthValueCriterion
impl Debug for EthValueCriterion
Source§impl<'de> Deserialize<'de> for EthValueCriterion
impl<'de> Deserialize<'de> for EthValueCriterion
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<&EthValueCriterion> for EthValueCriterion
impl From<&EthValueCriterion> for EthValueCriterion
Source§fn from(value: &EthValueCriterion) -> Self
fn from(value: &EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for EthValueCriterion
impl From<EthValueCriterion> for EthValueCriterion
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for PrepareUserOperationCriteriaItem
impl From<EthValueCriterion> for PrepareUserOperationCriteriaItem
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for SendEvmTransactionCriteriaItem
impl From<EthValueCriterion> for SendEvmTransactionCriteriaItem
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for SendUserOperationCriteriaItem
impl From<EthValueCriterion> for SendUserOperationCriteriaItem
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for SignEvmTransactionCriteriaItem
impl From<EthValueCriterion> for SignEvmTransactionCriteriaItem
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for EthValueCriterion
impl Serialize for EthValueCriterion
Source§impl TryFrom<EthValueCriterion> for EthValueCriterion
impl TryFrom<EthValueCriterion> for EthValueCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EthValueCriterion) -> Result<Self, ConversionError>
fn try_from(value: EthValueCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EthValueCriterion
impl RefUnwindSafe for EthValueCriterion
impl Send for EthValueCriterion
impl Sync for EthValueCriterion
impl Unpin for EthValueCriterion
impl UnwindSafe for EthValueCriterion
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