pub struct ParsedFeedPayload {
pub price_feed_id: PriceFeedId,
pub price: Option<Price>,
pub best_bid_price: Option<Price>,
pub best_ask_price: Option<Price>,
pub publisher_count: Option<u16>,
pub exponent: Option<i16>,
pub confidence: Option<Price>,
pub funding_rate: Option<Rate>,
pub funding_timestamp: Option<TimestampUs>,
pub funding_rate_interval: Option<DurationUs>,
}
Fields§
§price_feed_id: PriceFeedId
§price: Option<Price>
§best_bid_price: Option<Price>
§best_ask_price: Option<Price>
§publisher_count: Option<u16>
§exponent: Option<i16>
§confidence: Option<Price>
§funding_rate: Option<Rate>
§funding_timestamp: Option<TimestampUs>
§funding_rate_interval: Option<DurationUs>
Implementations§
Source§impl ParsedFeedPayload
impl ParsedFeedPayload
pub fn new( price_feed_id: PriceFeedId, exponent: Option<i16>, data: &AggregatedPriceFeedData, properties: &[PriceFeedProperty], ) -> Self
pub fn new_full( price_feed_id: PriceFeedId, exponent: Option<i16>, data: &AggregatedPriceFeedData, ) -> Self
Trait Implementations§
Source§impl Clone for ParsedFeedPayload
impl Clone for ParsedFeedPayload
Source§fn clone(&self) -> ParsedFeedPayload
fn clone(&self) -> ParsedFeedPayload
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 ParsedFeedPayload
impl Debug for ParsedFeedPayload
Source§impl<'de> Deserialize<'de> for ParsedFeedPayload
impl<'de> Deserialize<'de> for ParsedFeedPayload
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 ParsedFeedPayload
impl Hash for ParsedFeedPayload
Source§impl PartialEq for ParsedFeedPayload
impl PartialEq for ParsedFeedPayload
Source§impl Serialize for ParsedFeedPayload
impl Serialize for ParsedFeedPayload
impl Eq for ParsedFeedPayload
impl StructuralPartialEq for ParsedFeedPayload
Auto Trait Implementations§
impl Freeze for ParsedFeedPayload
impl RefUnwindSafe for ParsedFeedPayload
impl Send for ParsedFeedPayload
impl Sync for ParsedFeedPayload
impl Unpin for ParsedFeedPayload
impl UnwindSafe for ParsedFeedPayload
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