pub struct Paginated<T> {
pub href: String,
pub limit: u32,
pub next: Option<String>,
pub offset: u32,
pub previous: Option<String>,
pub total: u32,
pub items: Vec<T>,
}Expand description
Paginated response wrapper.
Fields§
§href: StringURL to the API endpoint for this page.
limit: u32Maximum number of items in the response.
next: Option<String>URL to the next page (null if last page).
offset: u32Offset of the items returned.
previous: Option<String>URL to the previous page (null if first page).
total: u32Total number of items available.
items: Vec<T>The requested items.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Paginated<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Paginated<T>where
T: Deserialize<'de>,
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
Auto Trait Implementations§
impl<T> Freeze for Paginated<T>
impl<T> RefUnwindSafe for Paginated<T>where
T: RefUnwindSafe,
impl<T> Send for Paginated<T>where
T: Send,
impl<T> Sync for Paginated<T>where
T: Sync,
impl<T> Unpin for Paginated<T>where
T: Unpin,
impl<T> UnwindSafe for Paginated<T>where
T: 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