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