pub struct JsonUpdate {
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>Parsed representation of the price update.
Present unless parsed = false is specified in subscription params.
evm: Option<JsonBinaryData>Signed on-chain payload for EVM. Only present if Evm is present in formats in subscription params.
solana: Option<JsonBinaryData>Signed on-chain payload for Solana. Only present if Solana is present in formats in subscription params.
le_ecdsa: Option<JsonBinaryData>Signed binary payload for off-chain verification. Only present if LeEcdsa is present in formats in subscription params.
le_unsigned: Option<JsonBinaryData>Unsigned binary payload. Only present if LeUnsigned is present in formats in subscription params.
Trait Implementations§
Source§impl Clone for JsonUpdate
impl Clone for JsonUpdate
Source§fn clone(&self) -> JsonUpdate
fn clone(&self) -> JsonUpdate
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 JsonUpdate
impl Debug for JsonUpdate
Source§impl<'de> Deserialize<'de> for JsonUpdate
impl<'de> Deserialize<'de> for JsonUpdate
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 Hash for JsonUpdate
impl Hash for JsonUpdate
Source§impl PartialEq for JsonUpdate
impl PartialEq for JsonUpdate
Source§impl Serialize for JsonUpdate
impl Serialize for JsonUpdate
impl Eq for JsonUpdate
impl StructuralPartialEq for JsonUpdate
Auto Trait Implementations§
impl Freeze for JsonUpdate
impl RefUnwindSafe for JsonUpdate
impl Send for JsonUpdate
impl Sync for JsonUpdate
impl Unpin for JsonUpdate
impl UnsafeUnpin for JsonUpdate
impl UnwindSafe for JsonUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more