pub struct SessionSearchQuery {
pub text: Option<String>,
pub mode: SessionSearchQueryMode,
pub filter: SessionSearchFilter,
pub sources: BTreeSet<SessionSearchSource>,
pub granularity: SessionSearchGranularity,
pub sort: SessionSearchSort,
pub limit: u32,
pub cursor: Option<String>,
}Expand description
A bounded search request. text is never a regular expression or shell expression.
Fields§
§text: Option<String>Optional literal text. None performs metadata browsing.
mode: SessionSearchQueryModeText interpretation mode.
filter: SessionSearchFilterTyped filters.
sources: BTreeSet<SessionSearchSource>Projection families. Empty means provider defaults.
granularity: SessionSearchGranularityResult grouping level.
sort: SessionSearchSortStable ordering.
limit: u32Maximum hits requested.
cursor: Option<String>Opaque provider cursor.
Implementations§
Source§impl SessionSearchQuery
impl SessionSearchQuery
Sourcepub fn fingerprint(&self) -> Result<String, SessionSearchError>
pub fn fingerprint(&self) -> Result<String, SessionSearchError>
Return a stable fingerprint that intentionally excludes the pagination cursor.
§Errors
Returns an invalid-query error if the typed query cannot be serialized.
Trait Implementations§
Source§impl Clone for SessionSearchQuery
impl Clone for SessionSearchQuery
Source§fn clone(&self) -> SessionSearchQuery
fn clone(&self) -> SessionSearchQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionSearchQuery
impl Debug for SessionSearchQuery
Source§impl Default for SessionSearchQuery
impl Default for SessionSearchQuery
Source§impl<'de> Deserialize<'de> for SessionSearchQuery
impl<'de> Deserialize<'de> for SessionSearchQuery
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
impl Eq for SessionSearchQuery
Source§impl PartialEq for SessionSearchQuery
impl PartialEq for SessionSearchQuery
Source§impl Serialize for SessionSearchQuery
impl Serialize for SessionSearchQuery
impl StructuralPartialEq for SessionSearchQuery
Auto Trait Implementations§
impl Freeze for SessionSearchQuery
impl RefUnwindSafe for SessionSearchQuery
impl Send for SessionSearchQuery
impl Sync for SessionSearchQuery
impl Unpin for SessionSearchQuery
impl UnsafeUnpin for SessionSearchQuery
impl UnwindSafe for SessionSearchQuery
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