pub struct CustomAdapterConfig {
pub name: String,
pub detect: CustomDetectConfig,
pub command: String,
pub args: Vec<String>,
pub output: String,
pub confidence: f32,
pub check: Option<String>,
pub working_dir: Option<String>,
pub env: HashMap<String, String>,
}Expand description
Custom adapter definition.
Fields§
§name: StringName for the custom adapter
detect: CustomDetectConfigDetection configuration
command: StringCommand to run
args: Vec<String>Default arguments
output: StringOutput parser: “json”, “junit”, “tap”, “lines”, “regex”
confidence: f32Detection confidence (0.0 to 1.0)
check: Option<String>Verify runner is installed before executing
working_dir: Option<String>Working directory relative to project root
env: HashMap<String, String>Environment variables to set
Trait Implementations§
Source§impl Clone for CustomAdapterConfig
impl Clone for CustomAdapterConfig
Source§fn clone(&self) -> CustomAdapterConfig
fn clone(&self) -> CustomAdapterConfig
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 CustomAdapterConfig
impl Debug for CustomAdapterConfig
Source§impl<'de> Deserialize<'de> for CustomAdapterConfig
impl<'de> Deserialize<'de> for CustomAdapterConfig
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 CustomAdapterConfig
impl RefUnwindSafe for CustomAdapterConfig
impl Send for CustomAdapterConfig
impl Sync for CustomAdapterConfig
impl Unpin for CustomAdapterConfig
impl UnsafeUnpin for CustomAdapterConfig
impl UnwindSafe for CustomAdapterConfig
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