Type Alias PriceResponse

Source
pub type PriceResponse = JsonUpdate;

Aliased Type§

struct PriceResponse {
    pub parsed: Option<ParsedPayload>,
    pub evm: Option<JsonBinaryData>,
    pub solana: Option<JsonBinaryData>,
    pub le_ecdsa: Option<JsonBinaryData>,
    pub le_unsigned: Option<JsonBinaryData>,
}

Fields§

§parsed: Option<ParsedPayload>

Present unless parsed = false is specified in subscription params.

§evm: Option<JsonBinaryData>

Only present if Evm is present in formats in subscription params.

§solana: Option<JsonBinaryData>

Only present if Solana is present in formats in subscription params.

§le_ecdsa: Option<JsonBinaryData>

Only present if LeEcdsa is present in formats in subscription params.

§le_unsigned: Option<JsonBinaryData>

Only present if LeUnsigned is present in formats in subscription params.

Trait Implementations

Source§

impl Clone for JsonUpdate

Source§

fn clone(&self) -> JsonUpdate

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JsonUpdate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for JsonUpdate

Source§

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 Hash for JsonUpdate

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for JsonUpdate

Source§

fn eq(&self, other: &JsonUpdate) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for JsonUpdate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for JsonUpdate

Source§

impl StructuralPartialEq for JsonUpdate