pub struct Report {
pub feed_id: ID,
pub valid_from_timestamp: u32,
pub observations_timestamp: u32,
/* private fields */
}
Expand description
Report.
Fields§
§feed_id: ID
The stream ID the report has data for.
valid_from_timestamp: u32
Earliest timestamp for which price is applicable.
observations_timestamp: u32
Latest timestamp for which price is applicable.
Implementations§
Source§impl Report
impl Report
Sourcepub fn non_negative_price(&self) -> Option<U192>
pub fn non_negative_price(&self) -> Option<U192>
Get non-negative price.
Sourcepub fn non_negative_bid(&self) -> Option<U192>
pub fn non_negative_bid(&self) -> Option<U192>
Get non-negative bid.
Sourcepub fn non_negative_ask(&self) -> Option<U192>
pub fn non_negative_ask(&self) -> Option<U192>
Get non-negative ask.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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> 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