#[non_exhaustive]pub struct SearchV2Result {
pub matches: Vec<SearchMatchV2>,
pub has_more: bool,
pub cursor: Option<SearchV2Cursor>,
}
Available on crate features
sync_routes
and dbx_files
only.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.matches: Vec<SearchMatchV2>
A list (possibly empty) of matches for the query.
has_more: bool
Used for paging. If true, indicates there is another page of results available that can be
fetched by calling search_continue_v2()
with the
cursor.
cursor: Option<SearchV2Cursor>
Pass the cursor into search_continue_v2()
to fetch the
next page of results.
Implementations§
Source§impl SearchV2Result
impl SearchV2Result
pub fn new(matches: Vec<SearchMatchV2>, has_more: bool) -> Self
pub fn with_cursor(self, value: SearchV2Cursor) -> Self
Trait Implementations§
Source§impl Clone for SearchV2Result
impl Clone for SearchV2Result
Source§fn clone(&self) -> SearchV2Result
fn clone(&self) -> SearchV2Result
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 Debug for SearchV2Result
impl Debug for SearchV2Result
Source§impl<'de> Deserialize<'de> for SearchV2Result
impl<'de> Deserialize<'de> for SearchV2Result
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchV2Result
impl PartialEq for SearchV2Result
Source§impl Serialize for SearchV2Result
impl Serialize for SearchV2Result
impl StructuralPartialEq for SearchV2Result
Auto Trait Implementations§
impl Freeze for SearchV2Result
impl RefUnwindSafe for SearchV2Result
impl Send for SearchV2Result
impl Sync for SearchV2Result
impl Unpin for SearchV2Result
impl UnwindSafe for SearchV2Result
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