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