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