pub struct SearchScope {Show 14 fields
pub query: Option<Query>,
pub mem: Option<String>,
pub entity_type: Option<String>,
pub limit: Option<usize>,
pub offset: Option<usize>,
pub filters: HashMap<String, String>,
pub range_filters: HashMap<String, String>,
pub edge_type: Option<String>,
pub related_to: Option<EntityId>,
pub depth: Option<usize>,
pub expand_via: Option<Vec<String>>,
pub expand_depth: Option<usize>,
pub stub: Option<bool>,
pub token_budget: Option<usize>,
}Expand description
Scope filters for search and list operations.
Fields§
§query: Option<Query>Structured flat query. All text matching flows through this field;
see Query for semantics. None (or an empty query) makes
search behave as a metadata-only filter.
mem: Option<String>§entity_type: Option<String>§limit: Option<usize>§offset: Option<usize>§filters: HashMap<String, String>Equality filters on metadata fields: { "level": "M0" }.
range_filters: HashMap<String, String>Range filters: { "min_coverage": "0.5", "max_coverage": "1.0" }.
edge_type: Option<String>Only entities with this edge type (incoming or outgoing).
Only entities reachable from this entity within depth hops.
depth: Option<usize>§expand_via: Option<Vec<String>>Relationship types to follow from primary hits to pull in graph-proximal neighbours.
expand_depth: Option<usize>Maximum hops to traverse via expand_via (default: 1 when expand_via
is set).
stub: Option<bool>Filter by stub status. None = no filter (returns both stubs and real
entities); Some(true) = only stubs; Some(false) = only real entities.
token_budget: Option<usize>Token budget bounding the returned hit payload (search path only).
None uses the engine default. A page whose hits exceed the budget is
greedily trimmed (at least one hit always returns) with a
SEARCH_RESULTS_TRUNCATED warning; total still reflects the full
match count so the agent can page with offset.
Trait Implementations§
Source§impl Clone for SearchScope
impl Clone for SearchScope
Source§fn clone(&self) -> SearchScope
fn clone(&self) -> SearchScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchScope
impl Debug for SearchScope
Source§impl Default for SearchScope
impl Default for SearchScope
Source§fn default() -> SearchScope
fn default() -> SearchScope
Auto Trait Implementations§
impl Freeze for SearchScope
impl RefUnwindSafe for SearchScope
impl Send for SearchScope
impl Sync for SearchScope
impl Unpin for SearchScope
impl UnsafeUnpin for SearchScope
impl UnwindSafe for SearchScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more