pub struct MatchedFile {
pub path: PathBuf,
pub bytes: u64,
pub content: String,
}Expand description
One file the resolver matched against an agent’s pattern set.
path is the file’s path relative to the repo root, normalized to use
forward slashes regardless of the host platform (downstream agents resolve
relative paths against the repo, and absolute paths leak local filesystem
layout).
Fields§
§path: PathBuf§bytes: u64§content: StringTrait Implementations§
Source§impl Clone for MatchedFile
impl Clone for MatchedFile
Source§fn clone(&self) -> MatchedFile
fn clone(&self) -> MatchedFile
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 MatchedFile
impl Debug for MatchedFile
Auto Trait Implementations§
impl Freeze for MatchedFile
impl RefUnwindSafe for MatchedFile
impl Send for MatchedFile
impl Sync for MatchedFile
impl Unpin for MatchedFile
impl UnsafeUnpin for MatchedFile
impl UnwindSafe for MatchedFile
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