pub struct ListDocument<A> {
pub data: Vec<Resource<A>>,
pub links: Option<Links>,
}Expand description
A resource-collection JSON:API document — the body of e.g. GET /v1/apps.
Collections are paginated. Apple caps limit at 200 per page and
advertises the following page in links.next; a list endpoint that
reads only data therefore silently truncates to one page, which is
indistinguishable from “there were only N of these”. Use
Client::list_all rather than a bare
request for any collection that can exceed 200 rows.
Fields§
§data: Vec<Resource<A>>§links: Option<Links>Trait Implementations§
Source§impl<A: Clone> Clone for ListDocument<A>
impl<A: Clone> Clone for ListDocument<A>
Source§impl<A: Debug> Debug for ListDocument<A>
impl<A: Debug> Debug for ListDocument<A>
Source§impl<'de, A> Deserialize<'de> for ListDocument<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ListDocument<A>where
A: 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<A> Freeze for ListDocument<A>
impl<A> RefUnwindSafe for ListDocument<A>
impl<A> Send for ListDocument<A>
impl<A> Sync for ListDocument<A>
impl<A> Unpin for ListDocument<A>
impl<A> UnsafeUnpin for ListDocument<A>
impl<A> UnwindSafe for ListDocument<A>
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