pub struct SearchQuery {
pub q: String,
pub namespace: Option<String>,
pub tier: Option<Tier>,
pub limit: Option<usize>,
pub min_priority: Option<i32>,
pub since: Option<String>,
pub until: Option<String>,
pub tags: Option<String>,
pub agent_id: Option<String>,
pub as_agent: Option<String>,
pub source_uri: Option<String>,
pub format: Option<String>,
}Fields§
§q: StringFTS query string. v0.7.0 Provenance Gap 6 (#889/#891): may be
empty when source_uri is supplied (reciprocal source-only
query). Handler rejects only when BOTH are empty.
namespace: Option<String>§tier: Option<Tier>§limit: Option<usize>§min_priority: Option<i32>§since: Option<String>§until: Option<String>§agent_id: Option<String>Filter by metadata.agent_id (exact match).
as_agent: Option<String>Task 1.5 visibility: the querying agent’s namespace position.
When set, results are filtered per metadata.scope rules.
source_uri: Option<String>v0.7.0 Provenance Gap 6 (#889) — reciprocal source filter.
When source_uri=X is supplied, the result set is narrowed
to memories whose source_uri column equals X verbatim. The
partial idx_memories_source_uri index (v38) covers the
lookup so the query is O(log N).
format: Option<String>#1579 B4 — response format negotiation: json (default) |
toon | toon_compact. Reuses the MCP TOON encoder
(crate::toon); invalid values are rejected with 400
carrying the SSOT message from
crate::toon::invalid_format_msg.
Trait Implementations§
Source§impl Debug for SearchQuery
impl Debug for SearchQuery
Source§impl<'de> Deserialize<'de> for SearchQuery
impl<'de> Deserialize<'de> for SearchQuery
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>,
Auto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuery
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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