pub struct InstructionEntry {
pub source_path: PathBuf,
pub content: String,
}Expand description
One discovered instruction file: where it came from, and its contents.
Fields§
§source_path: PathBufThe file the content came from (labeled in the injected message so the model can attribute conflicting rules).
content: StringThe file’s text.
Trait Implementations§
Source§impl Clone for InstructionEntry
impl Clone for InstructionEntry
Source§fn clone(&self) -> InstructionEntry
fn clone(&self) -> InstructionEntry
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 InstructionEntry
impl Debug for InstructionEntry
impl Eq for InstructionEntry
Source§impl PartialEq for InstructionEntry
impl PartialEq for InstructionEntry
impl StructuralPartialEq for InstructionEntry
Auto Trait Implementations§
impl Freeze for InstructionEntry
impl RefUnwindSafe for InstructionEntry
impl Send for InstructionEntry
impl Sync for InstructionEntry
impl Unpin for InstructionEntry
impl UnsafeUnpin for InstructionEntry
impl UnwindSafe for InstructionEntry
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