pub struct SyntaxHighlightingConfig {
pub enabled: bool,
pub theme: String,
pub cache_themes: bool,
pub max_file_size_mb: usize,
pub enabled_languages: Vec<String>,
pub highlight_timeout_ms: u64,
}Expand description
Syntax highlighting configuration
Fields§
§enabled: boolEnable syntax highlighting for tool output
theme: StringTheme to use for syntax highlighting
cache_themes: boolEnable theme caching for better performance
max_file_size_mb: usizeMaximum file size for syntax highlighting (in MB)
enabled_languages: Vec<String>Languages to enable syntax highlighting for
highlight_timeout_ms: u64Performance settings - highlight timeout in milliseconds
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxHighlightingConfig
impl Clone for SyntaxHighlightingConfig
Source§fn clone(&self) -> SyntaxHighlightingConfig
fn clone(&self) -> SyntaxHighlightingConfig
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 SyntaxHighlightingConfig
impl Debug for SyntaxHighlightingConfig
Source§impl Default for SyntaxHighlightingConfig
impl Default for SyntaxHighlightingConfig
Source§impl<'de> Deserialize<'de> for SyntaxHighlightingConfig
impl<'de> Deserialize<'de> for SyntaxHighlightingConfig
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
Source§impl JsonSchema for SyntaxHighlightingConfig
impl JsonSchema for SyntaxHighlightingConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SyntaxHighlightingConfig
impl RefUnwindSafe for SyntaxHighlightingConfig
impl Send for SyntaxHighlightingConfig
impl Sync for SyntaxHighlightingConfig
impl Unpin for SyntaxHighlightingConfig
impl UnwindSafe for SyntaxHighlightingConfig
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