pub struct ClientOptions {
pub lint: Option<LintConfig>,
pub format: Option<FormatConfig>,
pub fix_all: Option<bool>,
pub unsafe_fixes: Option<bool>,
pub show_syntax_errors: Option<bool>,
pub server: ServerOptions,
}Expand description
Per-client or per-workspace Shuck options supplied through LSP settings.
Fields§
§lint: Option<LintConfig>Lint configuration overrides.
format: Option<FormatConfig>Format configuration overrides.
fix_all: Option<bool>Whether source-level fix-all actions are enabled.
unsafe_fixes: Option<bool>Whether unsafe fixes may be offered.
show_syntax_errors: Option<bool>Whether parser diagnostics should be shown.
server: ServerOptionsServer-only editor feature options.
Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientOptions
impl Debug for ClientOptions
Source§impl Default for ClientOptions
impl Default for ClientOptions
Source§fn default() -> ClientOptions
fn default() -> ClientOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientOptions
impl<'de> Deserialize<'de> for ClientOptions
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 ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
impl UnwindSafe for ClientOptions
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