pub struct SolValueObservation {
pub sol_values: Vec<SolValueObservationSolValuesItem>,
pub type_: SolValueObservationType,
}Expand description
The native SOL transfer amounts a solValue criterion compared.
JSON schema
{
"title": "SolValueObservation",
"description": "The native SOL transfer amounts a `solValue` criterion compared.",
"examples": [
{
"solValues": [
"1500000000"
],
"type": "solValue"
}
],
"type": "object",
"required": [
"solValues",
"type"
],
"properties": {
"solValues": {
"description": "The amount of each System Program transfer, in lamports, in instruction order. Empty when the transaction has none.",
"examples": [
[
"1500000000"
]
],
"type": "array",
"items": {
"description": "A transfer amount in lamports.",
"type": "string",
"maxLength": 20,
"pattern": "^[0-9]+$"
},
"maxItems": 128
},
"type": {
"description": "The criterion type.",
"examples": [
"solValue"
],
"type": "string",
"enum": [
"solValue"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§sol_values: Vec<SolValueObservationSolValuesItem>The amount of each System Program transfer, in lamports, in instruction order. Empty when the transaction has none.
type_: SolValueObservationTypeThe criterion type.
Implementations§
Source§impl SolValueObservation
impl SolValueObservation
pub fn builder() -> SolValueObservation
Trait Implementations§
Source§impl Clone for SolValueObservation
impl Clone for SolValueObservation
Source§impl Debug for SolValueObservation
impl Debug for SolValueObservation
Source§impl<'de> Deserialize<'de> for SolValueObservation
impl<'de> Deserialize<'de> for SolValueObservation
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<&SolValueObservation> for SolValueObservation
impl From<&SolValueObservation> for SolValueObservation
Source§fn from(value: &SolValueObservation) -> Self
fn from(value: &SolValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolValueObservation> for PolicyCriterionObservation
impl From<SolValueObservation> for PolicyCriterionObservation
Source§fn from(value: SolValueObservation) -> Self
fn from(value: SolValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<SolValueObservation> for SolValueObservation
impl From<SolValueObservation> for SolValueObservation
Source§fn from(value: SolValueObservation) -> Self
fn from(value: SolValueObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolValueObservation
impl Serialize for SolValueObservation
Source§impl TryFrom<SolValueObservation> for SolValueObservation
impl TryFrom<SolValueObservation> for SolValueObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolValueObservation) -> Result<Self, ConversionError>
fn try_from(value: SolValueObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolValueObservation
impl RefUnwindSafe for SolValueObservation
impl Send for SolValueObservation
impl Sync for SolValueObservation
impl Unpin for SolValueObservation
impl UnsafeUnpin for SolValueObservation
impl UnwindSafe for SolValueObservation
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