pub struct ListMeta {
pub total_count: usize,
pub limit: usize,
pub offset: usize,
pub has_more: bool,
pub next_offset: Option<usize>,
pub previous_offset: Option<usize>,
pub did_you_mean: Option<String>,
}Fields§
§total_count: usize§limit: usize§offset: usize§has_more: boolWhether another page exists after this one. A client used to have
to derive this from offset + items.len() < total_count, and get
it wrong at the boundary.
next_offset: Option<usize>Offsets to walk with, rather than fully-qualified URLs: the server
sits behind a proxy often enough that it cannot reliably rebuild
its own public URL, and a wrong link is worse than none. null at
either end of the range.
previous_offset: Option<usize>§did_you_mean: Option<String>A fuzzy “did you mean?” suggestion, set only by the page search when it returns no hits but a near-match title exists. Omitted from the JSON otherwise.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ListMeta
impl Freeze for ListMeta
impl RefUnwindSafe for ListMeta
impl Send for ListMeta
impl Sync for ListMeta
impl Unpin for ListMeta
impl UnsafeUnpin for ListMeta
impl UnwindSafe for ListMeta
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.