pub struct SplValueObservation {
pub spl_values: Vec<SplValueObservationSplValuesItem>,
pub type_: SplValueObservationType,
}Expand description
The SPL token transfer amounts an splValue criterion compared.
JSON schema
{
"title": "SplValueObservation",
"description": "The SPL token transfer amounts an `splValue` criterion compared.",
"examples": [
{
"splValues": [
"1500000"
],
"type": "splValue"
}
],
"type": "object",
"required": [
"splValues",
"type"
],
"properties": {
"splValues": {
"description": "The amount of each `TransferChecked` instruction, in the token's atomic units (not scaled by decimals), in instruction order. Empty when the transaction has none.",
"examples": [
[
"1500000"
]
],
"type": "array",
"items": {
"description": "A transfer amount in atomic units.",
"type": "string",
"maxLength": 20,
"pattern": "^[0-9]+$"
},
"maxItems": 128
},
"type": {
"description": "The criterion type.",
"examples": [
"splValue"
],
"type": "string",
"enum": [
"splValue"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§spl_values: Vec<SplValueObservationSplValuesItem>The amount of each TransferChecked instruction, in the token’s atomic units (not scaled by decimals), in instruction order. Empty when the transaction has none.
type_: SplValueObservationTypeThe criterion type.
Implementations§
Source§impl SplValueObservation
impl SplValueObservation
pub fn builder() -> SplValueObservation
Trait Implementations§
Source§impl Clone for SplValueObservation
impl Clone for SplValueObservation
Source§impl Debug for SplValueObservation
impl Debug for SplValueObservation
Source§impl<'de> Deserialize<'de> for SplValueObservation
impl<'de> Deserialize<'de> for SplValueObservation
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<&SplValueObservation> for SplValueObservation
impl From<&SplValueObservation> for SplValueObservation
Source§fn from(value: &SplValueObservation) -> Self
fn from(value: &SplValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<SplValueObservation> for PolicyCriterionObservation
impl From<SplValueObservation> for PolicyCriterionObservation
Source§fn from(value: SplValueObservation) -> Self
fn from(value: SplValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<SplValueObservation> for SplValueObservation
impl From<SplValueObservation> for SplValueObservation
Source§fn from(value: SplValueObservation) -> Self
fn from(value: SplValueObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for SplValueObservation
impl Serialize for SplValueObservation
Source§impl TryFrom<SplValueObservation> for SplValueObservation
impl TryFrom<SplValueObservation> for SplValueObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SplValueObservation) -> Result<Self, ConversionError>
fn try_from(value: SplValueObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SplValueObservation
impl RefUnwindSafe for SplValueObservation
impl Send for SplValueObservation
impl Sync for SplValueObservation
impl Unpin for SplValueObservation
impl UnsafeUnpin for SplValueObservation
impl UnwindSafe for SplValueObservation
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