pub struct DiscoveryQuery {Show 13 fields
pub workspace: Option<PathBuf>,
pub workspace_family: Option<PathBuf>,
pub updated_after_ms: Option<u64>,
pub updated_before_ms: Option<u64>,
pub harnesses: Vec<HarnessId>,
pub homes: HarnessHomes,
pub query: Option<String>,
pub cursor: Option<String>,
pub limit: Option<usize>,
pub include_topic_candidates: bool,
pub include_child_sessions: bool,
pub root_session_id: Option<String>,
pub profile: Option<String>,
}Expand description
Filters and roots used for one catalog scan.
Fields§
§workspace: Option<PathBuf>Only return sessions whose recorded working directory is this path.
workspace_family: Option<PathBuf>Only return sessions whose recorded working directory belongs to the
same REPOSITORY FAMILY as this path (UNI-7 / SUP-54 decision): the
family identity is the realpath of the git common directory, so a main
checkout and all its worktrees join as one family; the origin URL is
the tie-breaker that also joins separate clones of the same remote. A
non-repository path degrades to exact-realpath matching. Combines with
workspace as AND when both are set (exact-cwd stays available).
updated_after_ms: Option<u64>Only return sessions updated at or after this epoch-ms instant.
updated_before_ms: Option<u64>Only return sessions updated at or before this epoch-ms instant.
harnesses: Vec<HarnessId>Harnesses to scan. Empty means all built-ins.
homes: HarnessHomesStorage roots to scan.
query: Option<String>Case-insensitive search over harness, id, title, workspace, and model.
cursor: Option<String>Opaque cursor returned by a prior HarnessCatalog::discover_page.
limit: Option<usize>Maximum number of results after newest-first sorting.
include_topic_candidates: boolInclude oldest-first bounded topic candidates for harnesses whose native store does not publish a useful title. Off by default because topics are stable and list clients can retain them across refreshes.
include_child_sessions: boolInclude harness-native child rollouts such as Codex subagents. Off by default because they are parts of a parent conversation, not chats the user independently started. Translation/tree callers can opt in.
root_session_id: Option<String>Restrict an explicit child-inclusive discovery to one root and every descendant linked to it by native lineage. Applied before pagination.
profile: Option<String>ORCH-6: only return sessions routed through this config home (Hermes
profile_name / gateway key namespace, OpenClaw agent id). Exact
match; a session with no profile never matches. harnesses is the
harness filter and needs no second spelling.
Trait Implementations§
Source§impl Clone for DiscoveryQuery
impl Clone for DiscoveryQuery
Source§fn clone(&self) -> DiscoveryQuery
fn clone(&self) -> DiscoveryQuery
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 DiscoveryQuery
impl Debug for DiscoveryQuery
Source§impl Default for DiscoveryQuery
impl Default for DiscoveryQuery
Source§fn default() -> DiscoveryQuery
fn default() -> DiscoveryQuery
Source§impl<'de> Deserialize<'de> for DiscoveryQuerywhere
DiscoveryQuery: Default,
impl<'de> Deserialize<'de> for DiscoveryQuerywhere
DiscoveryQuery: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoveryQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoveryQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DiscoveryQuery
Source§impl PartialEq for DiscoveryQuery
impl PartialEq for DiscoveryQuery
Source§impl Serialize for DiscoveryQuery
impl Serialize for DiscoveryQuery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DiscoveryQuery
Auto Trait Implementations§
impl Freeze for DiscoveryQuery
impl RefUnwindSafe for DiscoveryQuery
impl Send for DiscoveryQuery
impl Sync for DiscoveryQuery
impl Unpin for DiscoveryQuery
impl UnsafeUnpin for DiscoveryQuery
impl UnwindSafe for DiscoveryQuery
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.