pub struct PagedResult<M> {
pub items: Vec<M>,
pub page: u64,
pub per_page: u64,
pub total_items: u64,
pub total_pages: u64,
}Expand description
Page de résultats, avec assez de métadonnées pour qu’un client sache s’il en reste d’autres.
Fields§
§items: Vec<M>§page: u64§per_page: u64§total_items: u64§total_pages: u64Trait Implementations§
Source§impl<M: Clone> Clone for PagedResult<M>
impl<M: Clone> Clone for PagedResult<M>
Source§fn clone(&self) -> PagedResult<M>
fn clone(&self) -> PagedResult<M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for PagedResult<M>
impl<M: Debug> Debug for PagedResult<M>
Auto Trait Implementations§
impl<M> Freeze for PagedResult<M>
impl<M> RefUnwindSafe for PagedResult<M>where
Vec<M>: RefUnwindSafe,
impl<M> Send for PagedResult<M>
impl<M> Sync for PagedResult<M>
impl<M> Unpin for PagedResult<M>
impl<M> UnsafeUnpin for PagedResult<M>where
Vec<M>: UnsafeUnpin,
impl<M> UnwindSafe for PagedResult<M>where
Vec<M>: UnwindSafe,
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more