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