pub struct ToolRuleDir {
pub path: &'static str,
pub format: RuleFormat,
pub extensions: &'static [&'static str],
pub suffix: Option<&'static str>,
}Expand description
Metadata for a known agent tool rule directory.
Fields§
§path: &'static strRelative path segment (e.g. .cursor/rules).
format: RuleFormatRule format stored in this directory.
extensions: &'static [&'static str]Allowed file extensions when no suffix is set.
suffix: Option<&'static str>Optional filename suffix (e.g. Copilot .instructions.md).
Trait Implementations§
Source§impl Clone for ToolRuleDir
impl Clone for ToolRuleDir
Source§fn clone(&self) -> ToolRuleDir
fn clone(&self) -> ToolRuleDir
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 ToolRuleDir
impl RefUnwindSafe for ToolRuleDir
impl Send for ToolRuleDir
impl Sync for ToolRuleDir
impl Unpin for ToolRuleDir
impl UnsafeUnpin for ToolRuleDir
impl UnwindSafe for ToolRuleDir
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