pub struct CodeBlockToolsConfig {
pub enabled: bool,
pub normalize_language: NormalizeLanguage,
pub on_error: OnError,
pub on_missing_language_definition: OnMissing,
pub on_missing_tool_binary: OnMissing,
pub timeout: u64,
pub languages: BTreeMap<String, LanguageToolConfig>,
pub language_aliases: BTreeMap<String, String>,
pub tools: BTreeMap<String, ToolDefinition>,
pub values_withheld: bool,
}Expand description
Master configuration for code block tools.
This is disabled by default for safety - users must explicitly enable it.
Fields§
§enabled: boolMaster switch (default: false)
normalize_language: NormalizeLanguageLanguage normalization strategy
on_error: OnErrorGlobal error handling strategy
on_missing_language_definition: OnMissingBehavior when a code block language has no tools configured for the current mode
(e.g., no lint tools for rumdl check, no format tools for rumdl check --fix)
on_missing_tool_binary: OnMissingBehavior when a configured tool’s binary cannot be found (e.g., not in PATH)
timeout: u64Timeout per tool execution in milliseconds (default: 30000)
languages: BTreeMap<String, LanguageToolConfig>Per-language tool configuration
language_aliases: BTreeMap<String, String>User-defined language aliases (override built-in resolution) Example: { “py”: “python”, “bash”: “shell” }
tools: BTreeMap<String, ToolDefinition>Custom tool definitions (override built-ins)
values_withheld: boolWhether this section came from a config file whose contents may not be quoted
back (an extends target, whose path is arbitrary and whose text the extending
project need not be able to read). The settings apply as written; only a message
about one has to leave it out.
Provenance rather than configuration, so it stays out of the serialized form and the JSON schema. The whole section is replaced as one value when configs merge, so the mark travels with the settings it describes.
Trait Implementations§
Source§impl Clone for CodeBlockToolsConfig
impl Clone for CodeBlockToolsConfig
Source§fn clone(&self) -> CodeBlockToolsConfig
fn clone(&self) -> CodeBlockToolsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CodeBlockToolsConfig
impl Debug for CodeBlockToolsConfig
Source§impl Default for CodeBlockToolsConfig
impl Default for CodeBlockToolsConfig
Source§impl<'de> Deserialize<'de> for CodeBlockToolsConfig
impl<'de> Deserialize<'de> for CodeBlockToolsConfig
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>,
impl Eq for CodeBlockToolsConfig
Source§impl JsonSchema for CodeBlockToolsConfig
impl JsonSchema for CodeBlockToolsConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CodeBlockToolsConfig
impl PartialEq for CodeBlockToolsConfig
Source§impl Serialize for CodeBlockToolsConfig
impl Serialize for CodeBlockToolsConfig
impl StructuralPartialEq for CodeBlockToolsConfig
Auto Trait Implementations§
impl Freeze for CodeBlockToolsConfig
impl RefUnwindSafe for CodeBlockToolsConfig
impl Send for CodeBlockToolsConfig
impl Sync for CodeBlockToolsConfig
impl Unpin for CodeBlockToolsConfig
impl UnsafeUnpin for CodeBlockToolsConfig
impl UnwindSafe for CodeBlockToolsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.