pub struct SplValueCriterion {
pub operator: SplValueCriterionOperator,
pub spl_value: String,
pub type_: SplValueCriterionType,
}
Expand description
The criterion for the SPL token value of a SPL token transfer instruction in a Solana transaction.
JSON schema
{
"title": "SplValueCriterion",
"description": "The criterion for the SPL token value of a SPL token transfer instruction in a Solana transaction.",
"type": "object",
"required": [
"operator",
"splValue",
"type"
],
"properties": {
"operator": {
"description": "The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `splValue` field will be on the right-hand side.",
"examples": [
"<="
],
"type": "string",
"enum": [
"GreaterThan",
"GreaterThanOrEqual",
"LessThan",
"LessThanOrEqual",
"Equal"
]
},
"splValue": {
"description": "The amount of the SPL token that the transaction instruction's `value` field should be compared to.",
"examples": [
"1000000000000000000"
],
"type": "string"
},
"type": {
"description": "The type of criterion to use. This should be `splValue`.",
"examples": [
"splValue"
],
"type": "string",
"enum": [
"splValue"
]
}
},
"x-audience": "public"
}
Fields§
§operator: SplValueCriterionOperator
The operator to use for the comparison. The transaction instruction’s value
field will be on the left-hand side of the operator, and the splValue
field will be on the right-hand side.
spl_value: String
The amount of the SPL token that the transaction instruction’s value
field should be compared to.
type_: SplValueCriterionType
The type of criterion to use. This should be splValue
.
Implementations§
Source§impl SplValueCriterion
impl SplValueCriterion
pub fn builder() -> SplValueCriterion
Trait Implementations§
Source§impl Clone for SplValueCriterion
impl Clone for SplValueCriterion
Source§fn clone(&self) -> SplValueCriterion
fn clone(&self) -> SplValueCriterion
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 SplValueCriterion
impl Debug for SplValueCriterion
Source§impl<'de> Deserialize<'de> for SplValueCriterion
impl<'de> Deserialize<'de> for SplValueCriterion
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<&SplValueCriterion> for SplValueCriterion
impl From<&SplValueCriterion> for SplValueCriterion
Source§fn from(value: &SplValueCriterion) -> Self
fn from(value: &SplValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SplValueCriterion> for SendSolTransactionCriteriaItem
impl From<SplValueCriterion> for SendSolTransactionCriteriaItem
Source§fn from(value: SplValueCriterion) -> Self
fn from(value: SplValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SplValueCriterion> for SignSolTransactionCriteriaItem
impl From<SplValueCriterion> for SignSolTransactionCriteriaItem
Source§fn from(value: SplValueCriterion) -> Self
fn from(value: SplValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SplValueCriterion> for SplValueCriterion
impl From<SplValueCriterion> for SplValueCriterion
Source§fn from(value: SplValueCriterion) -> Self
fn from(value: SplValueCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for SplValueCriterion
impl Serialize for SplValueCriterion
Source§impl TryFrom<SplValueCriterion> for SplValueCriterion
impl TryFrom<SplValueCriterion> for SplValueCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SplValueCriterion) -> Result<Self, ConversionError>
fn try_from(value: SplValueCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SplValueCriterion
impl RefUnwindSafe for SplValueCriterion
impl Send for SplValueCriterion
impl Sync for SplValueCriterion
impl Unpin for SplValueCriterion
impl UnwindSafe for SplValueCriterion
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