#[non_exhaustive]pub struct DepthPage {
pub columns: Vec<DepthColumn>,
pub end_of_history: bool,
pub continue_before: Option<DateTime<Utc>>,
}Expand description
Recorded depth columns. Empty pages end paging, including when end_of_history is false,
unless they name where older columns continue with continue_before.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.columns: Vec<DepthColumn>Columns on the requested grid; held live columns win on overlap. Gaps remain gaps.
end_of_history: boolNothing exists before the oldest returned column.
continue_before: Option<DateTime<Utc>>On a page without columns: older columns exist, and the chart asks again for those
before this instant, which must be earlier than request.before; see
HistoryPage::continue_before.
Implementations§
Source§impl DepthPage
impl DepthPage
Sourcepub fn new(columns: Vec<DepthColumn>, end_of_history: bool) -> Self
pub fn new(columns: Vec<DepthColumn>, end_of_history: bool) -> Self
A page of columns, the last one when end_of_history.
Sourcepub fn with_continue_before(self, before: DateTime<Utc>) -> Self
pub fn with_continue_before(self, before: DateTime<Utc>) -> Self
Sets continue_before.
Trait Implementations§
impl StructuralPartialEq for DepthPage
Auto Trait Implementations§
impl Freeze for DepthPage
impl RefUnwindSafe for DepthPage
impl Send for DepthPage
impl Sync for DepthPage
impl Unpin for DepthPage
impl UnsafeUnpin for DepthPage
impl UnwindSafe for DepthPage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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