pub struct CollectionDoc<A> {
pub data: Vec<Resource<A>>,
pub links: Links,
pub meta: Meta,
}Expand description
A collection response (GET /v1/reports, GET /v1/me/programs, …).
Fields§
§data: Vec<Resource<A>>The resources.
links: LinksPagination links.
meta: MetaResponse metadata.
Trait Implementations§
Source§impl<A: Clone> Clone for CollectionDoc<A>
impl<A: Clone> Clone for CollectionDoc<A>
Source§impl<A: Debug> Debug for CollectionDoc<A>
impl<A: Debug> Debug for CollectionDoc<A>
Source§impl<'de, A> Deserialize<'de> for CollectionDoc<A>where
A: Deserialize<'de> + Default,
impl<'de, A> Deserialize<'de> for CollectionDoc<A>where
A: Deserialize<'de> + Default,
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 CollectionDoc<A>
impl<A> RefUnwindSafe for CollectionDoc<A>
impl<A> Send for CollectionDoc<A>
impl<A> Sync for CollectionDoc<A>
impl<A> Unpin for CollectionDoc<A>
impl<A> UnsafeUnpin for CollectionDoc<A>
impl<A> UnwindSafe for CollectionDoc<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