pub struct EvmAddressCriterion {
pub addresses: Vec<EvmAddressCriterionAddressesItem>,
pub operator: EvmAddressCriterionOperator,
pub type_: EvmAddressCriterionType,
}
Expand description
A schema for specifying a criterion for the to
field of an EVM transaction.
JSON schema
{
"title": "EvmAddressCriterion",
"description": "A schema for specifying a criterion for the `to` field of an EVM transaction.",
"type": "object",
"required": [
"addresses",
"operator",
"type"
],
"properties": {
"addresses": {
"description": "A list of 0x-prefixed EVM addresses that the transaction's `to` field should be compared to. There is a limit of 300 addresses per criterion.",
"examples": [
[
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"0x1234567890123456789012345678901234567890"
]
],
"type": "array",
"items": {
"description": "The 0x-prefixed EVM address that the transaction's `to` field should be compared to.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"operator": {
"description": "The operator to use for the comparison. The transaction's `to` field will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.",
"examples": [
"in"
],
"type": "string",
"enum": [
"in",
"not in"
]
},
"type": {
"description": "The type of criterion to use. This should be `evmAddress`.",
"examples": [
"evmAddress"
],
"type": "string",
"enum": [
"evmAddress"
]
}
},
"x-audience": "public"
}
Fields§
§addresses: Vec<EvmAddressCriterionAddressesItem>
A list of 0x-prefixed EVM addresses that the transaction’s to
field should be compared to. There is a limit of 300 addresses per criterion.
operator: EvmAddressCriterionOperator
The operator to use for the comparison. The transaction’s to
field will be on the left-hand side of the operator, and the addresses
field will be on the right-hand side.
type_: EvmAddressCriterionType
The type of criterion to use. This should be evmAddress
.
Implementations§
Source§impl EvmAddressCriterion
impl EvmAddressCriterion
pub fn builder() -> EvmAddressCriterion
Trait Implementations§
Source§impl Clone for EvmAddressCriterion
impl Clone for EvmAddressCriterion
Source§fn clone(&self) -> EvmAddressCriterion
fn clone(&self) -> EvmAddressCriterion
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 EvmAddressCriterion
impl Debug for EvmAddressCriterion
Source§impl<'de> Deserialize<'de> for EvmAddressCriterion
impl<'de> Deserialize<'de> for EvmAddressCriterion
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<&EvmAddressCriterion> for EvmAddressCriterion
impl From<&EvmAddressCriterion> for EvmAddressCriterion
Source§fn from(value: &EvmAddressCriterion) -> Self
fn from(value: &EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for EvmAddressCriterion
impl From<EvmAddressCriterion> for EvmAddressCriterion
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for PrepareUserOperationCriteriaItem
impl From<EvmAddressCriterion> for PrepareUserOperationCriteriaItem
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for SendEvmTransactionCriteriaItem
impl From<EvmAddressCriterion> for SendEvmTransactionCriteriaItem
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for SendUserOperationCriteriaItem
impl From<EvmAddressCriterion> for SendUserOperationCriteriaItem
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for SignEvmTransactionCriteriaItem
impl From<EvmAddressCriterion> for SignEvmTransactionCriteriaItem
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmAddressCriterion
impl Serialize for EvmAddressCriterion
Source§impl TryFrom<EvmAddressCriterion> for EvmAddressCriterion
impl TryFrom<EvmAddressCriterion> for EvmAddressCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmAddressCriterion) -> Result<Self, ConversionError>
fn try_from(value: EvmAddressCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmAddressCriterion
impl RefUnwindSafe for EvmAddressCriterion
impl Send for EvmAddressCriterion
impl Sync for EvmAddressCriterion
impl Unpin for EvmAddressCriterion
impl UnwindSafe for EvmAddressCriterion
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