pub struct LanguageConfig {
pub language: String,
pub extensions: Vec<String>,
pub parser_plugin: Option<String>,
pub diagnostic_rules: Vec<DiagnosticRule>,
pub code_actions: Vec<CodeActionTemplate>,
}Expand description
Language configuration
Fields§
§language: StringLanguage identifier (e.g., “rust”, “typescript”, “python”)
extensions: Vec<String>File extensions for this language
parser_plugin: Option<String>Parser plugin reference (e.g., “tree-sitter-rust”)
diagnostic_rules: Vec<DiagnosticRule>Diagnostic rules for this language
code_actions: Vec<CodeActionTemplate>Code action transformations for this language
Implementations§
Source§impl LanguageConfig
impl LanguageConfig
Sourcepub fn validate(&self) -> ConfigResult<()>
pub fn validate(&self) -> ConfigResult<()>
Validate the language configuration
Trait Implementations§
Source§impl Clone for LanguageConfig
impl Clone for LanguageConfig
Source§fn clone(&self) -> LanguageConfig
fn clone(&self) -> LanguageConfig
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 LanguageConfig
impl Debug for LanguageConfig
Source§impl<'de> Deserialize<'de> for LanguageConfig
impl<'de> Deserialize<'de> for LanguageConfig
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 LanguageConfig
impl RefUnwindSafe for LanguageConfig
impl Send for LanguageConfig
impl Sync for LanguageConfig
impl Unpin for LanguageConfig
impl UnwindSafe for LanguageConfig
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