pub struct SolDataObservation {
pub instructions: Vec<ObservedInstruction>,
pub truncated: bool,
pub type_: SolDataObservationType,
}Expand description
The instructions a solData criterion decoded with the criterion’s idls. The criterion is met when every instruction matches at least one of its conditions.
JSON schema
{
"title": "SolDataObservation",
"description": "The instructions a `solData` criterion decoded with the criterion's `idls`. The criterion is met when every instruction matches at least one of its `conditions`.",
"examples": [
{
"instructions": [
{
"arguments": [
{
"name": "amount",
"truncated": false,
"type": "u64",
"value": "2000000"
},
{
"name": "decimals",
"truncated": false,
"type": "u8",
"value": "6"
}
],
"index": 1,
"instruction": "transfer_checked",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"truncated": false,
"type": "solData"
}
],
"type": "object",
"required": [
"instructions",
"truncated",
"type"
],
"properties": {
"instructions": {
"description": "The instructions that decided the criterion. When the criterion is unmet, this is the first instruction that matched no condition, only. When it is met, this is every instruction, in transaction order.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObservedInstruction"
},
"maxItems": 64
},
"truncated": {
"description": "Whether `instructions` was cut to its first 64 entries.",
"examples": [
false
],
"type": "boolean"
},
"type": {
"description": "The criterion type.",
"examples": [
"solData"
],
"type": "string",
"enum": [
"solData"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§instructions: Vec<ObservedInstruction>The instructions that decided the criterion. When the criterion is unmet, this is the first instruction that matched no condition, only. When it is met, this is every instruction, in transaction order.
truncated: boolWhether instructions was cut to its first 64 entries.
type_: SolDataObservationTypeThe criterion type.
Implementations§
Source§impl SolDataObservation
impl SolDataObservation
pub fn builder() -> SolDataObservation
Trait Implementations§
Source§impl Clone for SolDataObservation
impl Clone for SolDataObservation
Source§impl Debug for SolDataObservation
impl Debug for SolDataObservation
Source§impl<'de> Deserialize<'de> for SolDataObservation
impl<'de> Deserialize<'de> for SolDataObservation
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<&SolDataObservation> for SolDataObservation
impl From<&SolDataObservation> for SolDataObservation
Source§fn from(value: &SolDataObservation) -> Self
fn from(value: &SolDataObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolDataObservation> for PolicyCriterionObservation
impl From<SolDataObservation> for PolicyCriterionObservation
Source§fn from(value: SolDataObservation) -> Self
fn from(value: SolDataObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolDataObservation> for SolDataObservation
impl From<SolDataObservation> for SolDataObservation
Source§fn from(value: SolDataObservation) -> Self
fn from(value: SolDataObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolDataObservation
impl Serialize for SolDataObservation
Source§impl TryFrom<SolDataObservation> for SolDataObservation
impl TryFrom<SolDataObservation> for SolDataObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolDataObservation) -> Result<Self, ConversionError>
fn try_from(value: SolDataObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolDataObservation
impl RefUnwindSafe for SolDataObservation
impl Send for SolDataObservation
impl Sync for SolDataObservation
impl Unpin for SolDataObservation
impl UnsafeUnpin for SolDataObservation
impl UnwindSafe for SolDataObservation
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