pub struct InstructionFile {
pub scope: String,
pub path: PathBuf,
pub content: String,
}Expand description
A project instruction file discovered from the hierarchy.
Fields§
§scope: StringRelative description of where this file was found (e.g. “project”, “parent”, “global”).
path: PathBufAbsolute path to the file.
content: StringFile contents (truncated to 50 KB to avoid prompt bloat).
Trait Implementations§
Source§impl Clone for InstructionFile
impl Clone for InstructionFile
Source§fn clone(&self) -> InstructionFile
fn clone(&self) -> InstructionFile
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 moreAuto Trait Implementations§
impl Freeze for InstructionFile
impl RefUnwindSafe for InstructionFile
impl Send for InstructionFile
impl Sync for InstructionFile
impl Unpin for InstructionFile
impl UnsafeUnpin for InstructionFile
impl UnwindSafe for InstructionFile
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