pub struct SearchOptions {
pub query: String,
pub limit: usize,
pub tool: Option<String>,
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub project: Option<String>,
pub branch: Option<String>,
pub role: Option<String>,
pub repo: Option<String>,
pub context: usize,
}Expand description
Options for filtering search results.
Used by the search command to narrow down results by tool, date range, project, branch, and other criteria. The context field is used by the CLI layer, not the database layer.
Fields§
§query: StringThe search query text.
limit: usizeMaximum number of results to return.
tool: Option<String>Filter by AI tool name (e.g., “claude-code”, “aider”).
since: Option<DateTime<Utc>>Only include sessions after this date.
until: Option<DateTime<Utc>>Only include sessions before this date.
project: Option<String>Filter by project/directory name (partial match).
branch: Option<String>Filter by git branch name (partial match).
role: Option<String>Filter by message role (user, assistant, system).
repo: Option<String>Filter by repository path prefix.
context: usizeNumber of context messages to include before and after matches.
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
Returns a duplicate 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 SearchOptions
impl Debug for SearchOptions
Source§impl Default for SearchOptions
impl Default for SearchOptions
Source§fn default() -> SearchOptions
fn default() -> SearchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnwindSafe for SearchOptions
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