#[non_exhaustive]pub enum InstructionPlacement {
InlineBlock,
ReferencedFile,
StandaloneFile,
}Expand description
How an instruction file should be placed relative to the agent’s config.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InlineBlock
Inject content as a managed markdown block inside a shared file
(reuses md_block::upsert_instruction/md_block::remove_instruction
with the AGENT-CONFIG-INSTR fence prefix and the instruction name
as the tag).
ReferencedFile
Write a standalone file and add a managed include reference line
(e.g. @MYAPP.md in ~/.claude/CLAUDE.md). The reference itself
is managed as a fenced markdown block so it can be removed cleanly.
StandaloneFile
Write a standalone file only, no include reference.
For agents with rules directories where the file’s presence alone
causes the agent to load it (e.g. .roo/rules/MYAPP.md).
Trait Implementations§
Source§impl Clone for InstructionPlacement
impl Clone for InstructionPlacement
Source§fn clone(&self) -> InstructionPlacement
fn clone(&self) -> InstructionPlacement
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 moreimpl Copy for InstructionPlacement
Source§impl Debug for InstructionPlacement
impl Debug for InstructionPlacement
impl Eq for InstructionPlacement
Source§impl PartialEq for InstructionPlacement
impl PartialEq for InstructionPlacement
impl StructuralPartialEq for InstructionPlacement
Auto Trait Implementations§
impl Freeze for InstructionPlacement
impl RefUnwindSafe for InstructionPlacement
impl Send for InstructionPlacement
impl Sync for InstructionPlacement
impl Unpin for InstructionPlacement
impl UnsafeUnpin for InstructionPlacement
impl UnwindSafe for InstructionPlacement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.