pub enum TargetId {
AgentsMd,
ClaudeMd,
CursorRules,
GeminiMd,
CopilotInstructions,
Clinerules,
WindsurfRules,
CopilotInstructionsScoped,
JunieGuidelines,
}Expand description
A stable identifier for each supported output target.
Variants§
AgentsMd
ClaudeMd
CursorRules
GeminiMd
CopilotInstructions
Clinerules
WindsurfRules
CopilotInstructionsScoped
JunieGuidelines
Implementations§
Source§impl TargetId
impl TargetId
Sourcepub fn from_id(id: &str) -> Option<Self>
pub fn from_id(id: &str) -> Option<Self>
Parse a target ID from its YAML string representation.
Sourcepub fn primary_path(self) -> &'static str
pub fn primary_path(self) -> &'static str
Primary output path produced by this target.
Sourcepub fn generated_glob(self) -> &'static str
pub fn generated_glob(self) -> &'static str
Glob pattern(s) that cover all output files produced by this target.
Used to auto-populate paths.generated in the normalized model so that
users do not need to list output files in both outputs: and
paths.generated:.
Trait Implementations§
impl Copy for TargetId
impl Eq for TargetId
impl StructuralPartialEq for TargetId
Auto Trait Implementations§
impl Freeze for TargetId
impl RefUnwindSafe for TargetId
impl Send for TargetId
impl Sync for TargetId
impl Unpin for TargetId
impl UnsafeUnpin for TargetId
impl UnwindSafe for TargetId
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.