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