pub struct SignEvmTypedDataRule {
pub action: SignEvmTypedDataRuleAction,
pub criteria: SignEvmTypedDataCriteria,
pub operation: SignEvmTypedDataRuleOperation,
}
Expand description
SignEvmTypedDataRule
JSON schema
{
"title": "SignEvmTypedDataRule",
"required": [
"action",
"criteria",
"operation"
],
"properties": {
"action": {
"description": "Whether matching the rule will cause the request to be rejected or accepted.",
"examples": [
"accept"
],
"type": "string",
"enum": [
"reject",
"accept"
]
},
"criteria": {
"$ref": "#/components/schemas/SignEvmTypedDataCriteria"
},
"operation": {
"description": "The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.",
"examples": [
"signEvmTypedData"
],
"type": "string",
"enum": [
"signEvmTypedData"
]
}
},
"x-audience": "public"
}
Fields§
§action: SignEvmTypedDataRuleAction
Whether matching the rule will cause the request to be rejected or accepted.
criteria: SignEvmTypedDataCriteria
§operation: SignEvmTypedDataRuleOperation
The operation to which the rule applies. Every element of the criteria
array must match the specified operation.
Implementations§
Source§impl SignEvmTypedDataRule
impl SignEvmTypedDataRule
pub fn builder() -> SignEvmTypedDataRule
Trait Implementations§
Source§impl Clone for SignEvmTypedDataRule
impl Clone for SignEvmTypedDataRule
Source§fn clone(&self) -> SignEvmTypedDataRule
fn clone(&self) -> SignEvmTypedDataRule
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 SignEvmTypedDataRule
impl Debug for SignEvmTypedDataRule
Source§impl<'de> Deserialize<'de> for SignEvmTypedDataRule
impl<'de> Deserialize<'de> for SignEvmTypedDataRule
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<&SignEvmTypedDataRule> for SignEvmTypedDataRule
impl From<&SignEvmTypedDataRule> for SignEvmTypedDataRule
Source§fn from(value: &SignEvmTypedDataRule) -> Self
fn from(value: &SignEvmTypedDataRule) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataRule> for Rule
impl From<SignEvmTypedDataRule> for Rule
Source§fn from(value: SignEvmTypedDataRule) -> Self
fn from(value: SignEvmTypedDataRule) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataRule> for SignEvmTypedDataRule
impl From<SignEvmTypedDataRule> for SignEvmTypedDataRule
Source§fn from(value: SignEvmTypedDataRule) -> Self
fn from(value: SignEvmTypedDataRule) -> Self
Converts to this type from the input type.
Source§impl Serialize for SignEvmTypedDataRule
impl Serialize for SignEvmTypedDataRule
Source§impl TryFrom<SignEvmTypedDataRule> for SignEvmTypedDataRule
impl TryFrom<SignEvmTypedDataRule> for SignEvmTypedDataRule
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignEvmTypedDataRule) -> Result<Self, ConversionError>
fn try_from(value: SignEvmTypedDataRule) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignEvmTypedDataRule
impl RefUnwindSafe for SignEvmTypedDataRule
impl Send for SignEvmTypedDataRule
impl Sync for SignEvmTypedDataRule
impl Unpin for SignEvmTypedDataRule
impl UnwindSafe for SignEvmTypedDataRule
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