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