#[non_exhaustive]pub struct SearchContentResponse {
pub object: String,
pub data: Vec<ContentSearchResult>,
pub has_more: bool,
pub next_cursor: Option<String>,
pub total: Option<i64>,
pub meta: ResponseMeta,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.object: String§data: Vec<ContentSearchResult>§has_more: bool§next_cursor: Option<String>Omitted because content search is a bounded one-page result.
total: Option<i64>Absent because content search is a bounded relevance result and does not run a count query.
meta: ResponseMetaTrait Implementations§
Source§impl Clone for SearchContentResponse
impl Clone for SearchContentResponse
Source§impl Debug for SearchContentResponse
impl Debug for SearchContentResponse
Source§impl<'de> Deserialize<'de> for SearchContentResponse
impl<'de> Deserialize<'de> for SearchContentResponse
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 ListPage for SearchContentResponse
impl ListPage for SearchContentResponse
Source§type Item = ContentSearchResult
type Item = ContentSearchResult
The row type.
Source§fn items(&self) -> &[ContentSearchResult]
fn items(&self) -> &[ContentSearchResult]
The rows on this page.
Source§fn into_items(self) -> Vec<ContentSearchResult>
fn into_items(self) -> Vec<ContentSearchResult>
The rows on this page, owned.
Source§fn next_cursor(&self) -> Option<&str>
fn next_cursor(&self) -> Option<&str>
The cursor for the next page.
Source§impl PartialEq for SearchContentResponse
impl PartialEq for SearchContentResponse
Source§impl Serialize for SearchContentResponse
impl Serialize for SearchContentResponse
impl StructuralPartialEq for SearchContentResponse
Auto Trait Implementations§
impl Freeze for SearchContentResponse
impl RefUnwindSafe for SearchContentResponse
impl Send for SearchContentResponse
impl Sync for SearchContentResponse
impl Unpin for SearchContentResponse
impl UnsafeUnpin for SearchContentResponse
impl UnwindSafe for SearchContentResponse
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