pub struct GrepResponse {
pub namespace_id: NamespaceId,
pub head_seq: ChangeSeq,
pub built_through_seq: ChangeSeq,
pub tail_scanned: bool,
pub matches: Vec<GrepMatch>,
pub next_cursor: Option<String>,
}Expand description
One content-search page.
Fields§
§namespace_id: NamespaceIdNamespace searched.
head_seq: ChangeSeqSequence this page was evaluated at. Pages are evaluated against the namespace head at page time; the cursor is an ordering resume, not a snapshot pin.
built_through_seq: ChangeSeqCommits at or below this sequence were answered from the index.
tail_scanned: boolTrue when revisions after built_through_seq were scanned
exhaustively; false only when allow_stale skipped them.
matches: Vec<GrepMatch>Matches in ascending (inode_id, byte_offset) order. A page may
return fewer matches than its limit and still carry a cursor: the
per-page verified-candidate budget bounds how much content one
request reads, whatever the plan’s false-positive rate.
next_cursor: Option<String>Present when another page follows.
Trait Implementations§
Source§impl Clone for GrepResponse
impl Clone for GrepResponse
Source§fn clone(&self) -> GrepResponse
fn clone(&self) -> GrepResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GrepResponse
impl Debug for GrepResponse
Source§impl<'de> Deserialize<'de> for GrepResponse
impl<'de> Deserialize<'de> for GrepResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GrepResponse
Source§impl PartialEq for GrepResponse
impl PartialEq for GrepResponse
Source§impl Serialize for GrepResponse
impl Serialize for GrepResponse
impl StructuralPartialEq for GrepResponse
Auto Trait Implementations§
impl Freeze for GrepResponse
impl RefUnwindSafe for GrepResponse
impl Send for GrepResponse
impl Sync for GrepResponse
impl Unpin for GrepResponse
impl UnsafeUnpin for GrepResponse
impl UnwindSafe for GrepResponse
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