pub struct GrepRequest {
pub pattern: String,
pub case_insensitive: bool,
pub path_prefix: Option<AbsolutePath>,
pub cursor: Option<String>,
pub allow_stale: bool,
pub allow_scan: bool,
}Expand description
One content-search request.
Fields§
§pattern: StringThe Rust regex pattern, without backreferences or lookaround, limited to
1,024 UTF-8 bytes and requiring allow_scan when it has no required literal
bytes.
case_insensitive: boolWhether matching ignores case.
path_prefix: Option<AbsolutePath>The absolute directory path that limits matching to its descendants.
cursor: Option<String>The cursor from the previous page, bound to that request and evaluated against the current namespace head.
allow_stale: boolWhether index lag returns indexed-only results with tail_scanned: false
instead of index_lagging.
allow_scan: boolWhether patterns without required literal bytes may use a scan capped by the server’s budget.
Implementations§
Source§impl GrepRequest
impl GrepRequest
Sourcepub fn fingerprint(&self) -> u64
pub fn fingerprint(&self) -> u64
Fingerprint of the fields that select results, binding cursors to the request that issued them. Not a durable format: cursors are opaque and short-lived, so this may change between builds.