pub struct GrepMatch {
pub absolute_path: AbsolutePath,
pub inode_id: InodeId,
pub revision_no: RevisionNo,
pub line_number: u64,
pub byte_offset: u64,
pub line: String,
pub line_truncated: bool,
}Expand description
One line-oriented match.
Fields§
§absolute_path: AbsolutePathThe file’s absolute path, derived at the snapshot.
inode_id: InodeIdDurable identity of the matched file.
revision_no: RevisionNoThe matched revision (the newest visible one at the snapshot).
line_number: u64One-based line number of the match.
byte_offset: u64Byte offset of the match within the file.
line: StringThe matching line, truncated to the server’s line cap.
line_truncated: boolTrue when line was truncated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GrepMatch
impl<'de> Deserialize<'de> for GrepMatch
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 GrepMatch
impl StructuralPartialEq for GrepMatch
Auto Trait Implementations§
impl Freeze for GrepMatch
impl RefUnwindSafe for GrepMatch
impl Send for GrepMatch
impl Sync for GrepMatch
impl Unpin for GrepMatch
impl UnsafeUnpin for GrepMatch
impl UnwindSafe for GrepMatch
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