pub struct CustomDetectConfig {
pub files: Vec<String>,
pub commands: Vec<String>,
pub env_vars: Vec<String>,
pub content: Vec<ContentMatch>,
pub search_depth: usize,
}Expand description
Detection configuration for custom adapters.
Supports two TOML forms:
- Short:
detect = "Makefile"(equivalent todetect = { files = ["Makefile"] }) - Full:
[custom_adapter.detect]with files, commands, env, content, search_depth
Fields§
§files: Vec<String>File patterns whose presence triggers detection
commands: Vec<String>Commands that must succeed (exit 0) for detection
env_vars: Vec<String>Environment variables that must be set
content: Vec<ContentMatch>File content matching rules
search_depth: usizeSubdirectory search depth for markers (0 = root only)
Trait Implementations§
Source§impl Clone for CustomDetectConfig
impl Clone for CustomDetectConfig
Source§fn clone(&self) -> CustomDetectConfig
fn clone(&self) -> CustomDetectConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomDetectConfig
impl Debug for CustomDetectConfig
Source§impl Default for CustomDetectConfig
impl Default for CustomDetectConfig
Source§fn default() -> CustomDetectConfig
fn default() -> CustomDetectConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomDetectConfig
impl<'de> Deserialize<'de> for CustomDetectConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomDetectConfig
impl RefUnwindSafe for CustomDetectConfig
impl Send for CustomDetectConfig
impl Sync for CustomDetectConfig
impl Unpin for CustomDetectConfig
impl UnsafeUnpin for CustomDetectConfig
impl UnwindSafe for CustomDetectConfig
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