pub struct Page<T: DeserializeOwned> {
pub href: String,
pub items: Vec<T>,
pub limit: u32,
pub next: Option<String>,
pub offset: u32,
pub previous: Option<String>,
pub total: u32,
}
Expand description
Paging object
Fields§
§href: String
§items: Vec<T>
§limit: u32
§next: Option<String>
§offset: u32
§previous: Option<String>
§total: u32
This field could mismatch the actual number of items in items
field
because sometimes the API returns null
items that are not included in the items
field.
Trait Implementations§
Source§impl<'de, T: DeserializeOwned> Deserialize<'de> for Page<T>
impl<'de, T: DeserializeOwned> Deserialize<'de> for Page<T>
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
impl<T: Eq + DeserializeOwned> Eq for Page<T>
impl<T: DeserializeOwned> StructuralPartialEq for Page<T>
Auto Trait Implementations§
impl<T> Freeze for Page<T>
impl<T> RefUnwindSafe for Page<T>where
T: RefUnwindSafe,
impl<T> Send for Page<T>where
T: Send,
impl<T> Sync for Page<T>where
T: Sync,
impl<T> Unpin for Page<T>where
T: Unpin,
impl<T> UnwindSafe for Page<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