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