pub enum Rule {
SignEvmTransactionRule(SignEvmTransactionRule),
SendEvmTransactionRule(SendEvmTransactionRule),
SignEvmMessageRule(SignEvmMessageRule),
SignEvmTypedDataRule(SignEvmTypedDataRule),
SignSolTransactionRule(SignSolTransactionRule),
SendSolTransactionRule(SendSolTransactionRule),
SignEvmHashRule(SignEvmHashRule),
PrepareUserOperationRule(PrepareUserOperationRule),
SendUserOperationRule(SendUserOperationRule),
}
Expand description
A rule that limits the behavior of an account.
JSON schema
{
"description": "A rule that limits the behavior of an account.",
"examples": [
{
"action": "accept",
"criteria": [
{
"ethValue": "1000000",
"operator": ">=",
"type": "ethValue"
},
{
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"operator": "in",
"type": "evmAddress"
}
],
"operation": "signEvmTransaction"
}
],
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/SignEvmTransactionRule"
},
{
"$ref": "#/components/schemas/SendEvmTransactionRule"
},
{
"$ref": "#/components/schemas/SignEvmMessageRule"
},
{
"$ref": "#/components/schemas/SignEvmTypedDataRule"
},
{
"$ref": "#/components/schemas/SignSolTransactionRule"
},
{
"$ref": "#/components/schemas/SendSolTransactionRule"
},
{
"$ref": "#/components/schemas/SignEvmHashRule"
},
{
"$ref": "#/components/schemas/PrepareUserOperationRule"
},
{
"$ref": "#/components/schemas/SendUserOperationRule"
}
]
}
Variants§
SignEvmTransactionRule(SignEvmTransactionRule)
SendEvmTransactionRule(SendEvmTransactionRule)
SignEvmMessageRule(SignEvmMessageRule)
SignEvmTypedDataRule(SignEvmTypedDataRule)
SignSolTransactionRule(SignSolTransactionRule)
SendSolTransactionRule(SendSolTransactionRule)
SignEvmHashRule(SignEvmHashRule)
PrepareUserOperationRule(PrepareUserOperationRule)
SendUserOperationRule(SendUserOperationRule)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
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<PrepareUserOperationRule> for Rule
impl From<PrepareUserOperationRule> for Rule
Source§fn from(value: PrepareUserOperationRule) -> Self
fn from(value: PrepareUserOperationRule) -> 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<SendSolTransactionRule> for Rule
impl From<SendSolTransactionRule> for Rule
Source§fn from(value: SendSolTransactionRule) -> Self
fn from(value: SendSolTransactionRule) -> Self
Converts to this type from the input type.
Source§impl From<SendUserOperationRule> for Rule
impl From<SendUserOperationRule> for Rule
Source§fn from(value: SendUserOperationRule) -> Self
fn from(value: SendUserOperationRule) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmHashRule> for Rule
impl From<SignEvmHashRule> for Rule
Source§fn from(value: SignEvmHashRule) -> Self
fn from(value: SignEvmHashRule) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmMessageRule> for Rule
impl From<SignEvmMessageRule> for Rule
Source§fn from(value: SignEvmMessageRule) -> Self
fn from(value: SignEvmMessageRule) -> 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<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<SignSolTransactionRule> for Rule
impl From<SignSolTransactionRule> for Rule
Source§fn from(value: SignSolTransactionRule) -> Self
fn from(value: SignSolTransactionRule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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