pub struct ProgramIdCriterion {
pub operator: ProgramIdCriterionOperator,
pub program_ids: Vec<ProgramIdCriterionProgramIdsItem>,
pub type_: ProgramIdCriterionType,
}Expand description
The criterion for the program IDs of a Solana transaction’s instructions.
JSON schema
{
"title": "ProgramIdCriterion",
"description": "The criterion for the program IDs of a Solana transaction's instructions.",
"type": "object",
"required": [
"operator",
"programIds",
"type"
],
"properties": {
"operator": {
"description": "The operator to use for the comparison. Each of the program IDs in the transaction's instructions will be on the left-hand side of the operator, and the `programIds` field will be on the right-hand side.",
"examples": [
"in"
],
"type": "string",
"enum": [
"in",
"not in"
]
},
"programIds": {
"description": "The Solana program IDs that are compared to the list of program IDs in the transaction's instructions.",
"examples": [
[
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"11111111111111111111111111111112"
]
],
"type": "array",
"items": {
"description": "The Solana program ID that is compared to the list of program IDs in the transaction's instructions.",
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
}
},
"type": {
"description": "The type of criterion to use. This should be `programId`.",
"examples": [
"programId"
],
"type": "string",
"enum": [
"programId"
]
}
},
"x-audience": "public"
}Fields§
§operator: ProgramIdCriterionOperatorThe operator to use for the comparison. Each of the program IDs in the transaction’s instructions will be on the left-hand side of the operator, and the programIds field will be on the right-hand side.
program_ids: Vec<ProgramIdCriterionProgramIdsItem>The Solana program IDs that are compared to the list of program IDs in the transaction’s instructions.
type_: ProgramIdCriterionTypeThe type of criterion to use. This should be programId.
Implementations§
Source§impl ProgramIdCriterion
impl ProgramIdCriterion
pub fn builder() -> ProgramIdCriterion
Trait Implementations§
Source§impl Clone for ProgramIdCriterion
impl Clone for ProgramIdCriterion
Source§fn clone(&self) -> ProgramIdCriterion
fn clone(&self) -> ProgramIdCriterion
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 ProgramIdCriterion
impl Debug for ProgramIdCriterion
Source§impl<'de> Deserialize<'de> for ProgramIdCriterion
impl<'de> Deserialize<'de> for ProgramIdCriterion
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<&ProgramIdCriterion> for ProgramIdCriterion
impl From<&ProgramIdCriterion> for ProgramIdCriterion
Source§fn from(value: &ProgramIdCriterion) -> Self
fn from(value: &ProgramIdCriterion) -> Self
Converts to this type from the input type.
Source§impl From<ProgramIdCriterion> for ProgramIdCriterion
impl From<ProgramIdCriterion> for ProgramIdCriterion
Source§fn from(value: ProgramIdCriterion) -> Self
fn from(value: ProgramIdCriterion) -> Self
Converts to this type from the input type.
Source§impl From<ProgramIdCriterion> for SendSolTransactionCriteriaItem
impl From<ProgramIdCriterion> for SendSolTransactionCriteriaItem
Source§fn from(value: ProgramIdCriterion) -> Self
fn from(value: ProgramIdCriterion) -> Self
Converts to this type from the input type.
Source§impl From<ProgramIdCriterion> for SignSolTransactionCriteriaItem
impl From<ProgramIdCriterion> for SignSolTransactionCriteriaItem
Source§fn from(value: ProgramIdCriterion) -> Self
fn from(value: ProgramIdCriterion) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProgramIdCriterion
impl Serialize for ProgramIdCriterion
Source§impl TryFrom<ProgramIdCriterion> for ProgramIdCriterion
impl TryFrom<ProgramIdCriterion> for ProgramIdCriterion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProgramIdCriterion) -> Result<Self, ConversionError>
fn try_from(value: ProgramIdCriterion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProgramIdCriterion
impl RefUnwindSafe for ProgramIdCriterion
impl Send for ProgramIdCriterion
impl Sync for ProgramIdCriterion
impl Unpin for ProgramIdCriterion
impl UnwindSafe for ProgramIdCriterion
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