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