pub struct EvmNetworkCriterion {
pub networks: Vec<EvmNetworkCriterionNetworksItem>,
pub operator: EvmNetworkCriterionOperator,
pub type_: EvmNetworkCriterionType,
}
Expand description
A schema for specifying a criterion for the intended network
of an EVM transaction.
JSON schema
{
"title": "EvmNetworkCriterion",
"description": "A schema for specifying a criterion for the intended `network` of an EVM transaction.",
"type": "object",
"required": [
"networks",
"operator",
"type"
],
"properties": {
"networks": {
"description": "A list of EVM network identifiers that the transaction's intended `network` should be compared to.",
"examples": [
[
"base",
"ethereum"
]
],
"type": "array",
"items": {
"description": "The network the transaction is for.",
"examples": [
"base-sepolia"
],
"type": "string",
"enum": [
"base-sepolia",
"base",
"ethereum",
"ethereum-sepolia",
"avalanche",
"polygon",
"optimism",
"arbitrum",
"zora",
"bnb"
]
}
},
"operator": {
"description": "The operator to use for the comparison. The transaction's intended `network` will be on the left-hand side of the operator, and the `networks` 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 `evmNetwork`.",
"examples": [
"evmNetwork"
],
"type": "string",
"enum": [
"evmNetwork"
]
}
},
"x-audience": "public"
}
Fields§
§networks: Vec<EvmNetworkCriterionNetworksItem>
A list of EVM network identifiers that the transaction’s intended network
should be compared to.
operator: EvmNetworkCriterionOperator
The operator to use for the comparison. The transaction’s intended network
will be on the left-hand side of the operator, and the networks
field will be on the right-hand side.
type_: EvmNetworkCriterionType
The type of criterion to use. This should be evmNetwork
.
Implementations§
Source§impl EvmNetworkCriterion
impl EvmNetworkCriterion
pub fn builder() -> EvmNetworkCriterion
Trait Implementations§
Source§impl Clone for EvmNetworkCriterion
impl Clone for EvmNetworkCriterion
Source§fn clone(&self) -> EvmNetworkCriterion
fn clone(&self) -> EvmNetworkCriterion
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 EvmNetworkCriterion
impl Debug for EvmNetworkCriterion
Source§impl<'de> Deserialize<'de> for EvmNetworkCriterion
impl<'de> Deserialize<'de> for EvmNetworkCriterion
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<&EvmNetworkCriterion> for EvmNetworkCriterion
impl From<&EvmNetworkCriterion> for EvmNetworkCriterion
Source§fn from(value: &EvmNetworkCriterion) -> Self
fn from(value: &EvmNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkCriterion> for EvmNetworkCriterion
impl From<EvmNetworkCriterion> for EvmNetworkCriterion
Source§fn from(value: EvmNetworkCriterion) -> Self
fn from(value: EvmNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkCriterion> for PrepareUserOperationCriteriaItem
impl From<EvmNetworkCriterion> for PrepareUserOperationCriteriaItem
Source§fn from(value: EvmNetworkCriterion) -> Self
fn from(value: EvmNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkCriterion> for SendEvmTransactionCriteriaItem
impl From<EvmNetworkCriterion> for SendEvmTransactionCriteriaItem
Source§fn from(value: EvmNetworkCriterion) -> Self
fn from(value: EvmNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmNetworkCriterion
impl Serialize for EvmNetworkCriterion
Source§impl TryFrom<EvmNetworkCriterion> for EvmNetworkCriterion
impl TryFrom<EvmNetworkCriterion> for EvmNetworkCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmNetworkCriterion) -> Result<Self, ConversionError>
fn try_from(value: EvmNetworkCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmNetworkCriterion
impl RefUnwindSafe for EvmNetworkCriterion
impl Send for EvmNetworkCriterion
impl Sync for EvmNetworkCriterion
impl Unpin for EvmNetworkCriterion
impl UnwindSafe for EvmNetworkCriterion
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