Struct notion::models::ListResponse
source · pub struct ListResponse<T> {
pub results: Vec<T>,
pub next_cursor: Option<PagingCursor>,
pub has_more: bool,
}
Expand description
Fields§
§results: Vec<T>
§next_cursor: Option<PagingCursor>
§has_more: bool
Implementations§
source§impl ListResponse<Object>
impl ListResponse<Object>
pub fn only_databases(self) -> ListResponse<Database>
Trait Implementations§
source§impl<T: Clone> Clone for ListResponse<T>
impl<T: Clone> Clone for ListResponse<T>
source§fn clone(&self) -> ListResponse<T>
fn clone(&self) -> ListResponse<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 ==
.source§impl<T> Serialize for ListResponse<T>where
T: Serialize,
impl<T> Serialize for ListResponse<T>where
T: Serialize,
impl<T: Eq> Eq for ListResponse<T>
impl<T> StructuralEq for ListResponse<T>
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.