pub struct SolDataParameterConditionList {
pub name: String,
pub operator: SolDataParameterConditionListOperator,
pub values: Vec<String>,
}
Expand description
A single parameter condition to apply against a specific instruction’s parameters.
JSON schema
{
"title": "SolDataParameterConditionList",
"description": "A single parameter condition to apply against a specific instruction's parameters.",
"type": "object",
"required": [
"name",
"operator",
"values"
],
"properties": {
"name": {
"description": "The parameter name.",
"examples": [
"amount"
],
"type": "string"
},
"operator": {
"description": "The operator to use for the comparison. The value resolved at the `name` will be on the left-hand side of the operator, and the `value` field will be on the right-hand side.",
"examples": [
"in"
],
"type": "string",
"enum": [
"in",
"not in"
]
},
"values": {
"description": "The values to compare against.",
"examples": [
[
"1000000",
"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"6"
]
],
"type": "array",
"items": {
"description": "A single potential value to compare against the resolved `name` value.",
"examples": [
"1000000"
],
"type": "string"
}
}
},
"x-audience": "public"
}
Fields§
§name: String
The parameter name.
operator: SolDataParameterConditionListOperator
The operator to use for the comparison. The value resolved at the name
will be on the left-hand side of the operator, and the value
field will be on the right-hand side.
values: Vec<String>
The values to compare against.
Implementations§
Trait Implementations§
Source§impl Clone for SolDataParameterConditionList
impl Clone for SolDataParameterConditionList
Source§fn clone(&self) -> SolDataParameterConditionList
fn clone(&self) -> SolDataParameterConditionList
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<'de> Deserialize<'de> for SolDataParameterConditionList
impl<'de> Deserialize<'de> for SolDataParameterConditionList
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<&SolDataParameterConditionList> for SolDataParameterConditionList
impl From<&SolDataParameterConditionList> for SolDataParameterConditionList
Source§fn from(value: &SolDataParameterConditionList) -> Self
fn from(value: &SolDataParameterConditionList) -> Self
Converts to this type from the input type.
Source§impl From<SolDataParameterConditionList> for SolDataConditionParamsItem
impl From<SolDataParameterConditionList> for SolDataConditionParamsItem
Source§fn from(value: SolDataParameterConditionList) -> Self
fn from(value: SolDataParameterConditionList) -> Self
Converts to this type from the input type.
Source§impl From<SolDataParameterConditionList> for SolDataParameterConditionList
impl From<SolDataParameterConditionList> for SolDataParameterConditionList
Source§fn from(value: SolDataParameterConditionList) -> Self
fn from(value: SolDataParameterConditionList) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SolDataParameterConditionList> for SolDataParameterConditionList
impl TryFrom<SolDataParameterConditionList> for SolDataParameterConditionList
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SolDataParameterConditionList,
) -> Result<Self, ConversionError>
fn try_from( value: SolDataParameterConditionList, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolDataParameterConditionList
impl RefUnwindSafe for SolDataParameterConditionList
impl Send for SolDataParameterConditionList
impl Sync for SolDataParameterConditionList
impl Unpin for SolDataParameterConditionList
impl UnwindSafe for SolDataParameterConditionList
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