Struct oura_api::ListResponse
source · pub struct ListResponse<T> {
pub data: Vec<T>,
pub next_token: Option<String>,
}Expand description
Response from endpoints that return a list of items.
Fields§
§data: Vec<T>The list of items returned by the endpoint.
next_token: Option<String>The optional token to use to retrieve the next page of results.
Trait Implementations§
source§impl<T: Debug> Debug for ListResponse<T>
impl<T: Debug> Debug for ListResponse<T>
source§impl<'de, T> Deserialize<'de> for ListResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ListResponse<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
source§impl<T: PartialEq> PartialEq<ListResponse<T>> for ListResponse<T>
impl<T: PartialEq> PartialEq<ListResponse<T>> for ListResponse<T>
source§fn eq(&self, other: &ListResponse<T>) -> bool
fn eq(&self, other: &ListResponse<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> StructuralPartialEq for ListResponse<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ListResponse<T>where T: RefUnwindSafe,
impl<T> Send for ListResponse<T>where T: Send,
impl<T> Sync for ListResponse<T>where T: Sync,
impl<T> Unpin for ListResponse<T>where T: Unpin,
impl<T> UnwindSafe for ListResponse<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