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