Struct zed2::languages::language_settings::LanguageSettingsContent
source · pub struct LanguageSettingsContent {Show 16 fields
pub tab_size: Option<NonZeroU32>,
pub hard_tabs: Option<bool>,
pub soft_wrap: Option<SoftWrap>,
pub preferred_line_length: Option<u32>,
pub show_wrap_guides: Option<bool>,
pub wrap_guides: Option<Vec<usize, Global>>,
pub format_on_save: Option<FormatOnSave>,
pub remove_trailing_whitespace_on_save: Option<bool>,
pub ensure_final_newline_on_save: Option<bool>,
pub formatter: Option<Formatter>,
pub prettier: Option<HashMap<String, Value, RandomState>>,
pub enable_language_server: Option<bool>,
pub show_copilot_suggestions: Option<bool>,
pub show_whitespaces: Option<ShowWhitespaceSetting>,
pub extend_comment_on_newline: Option<bool>,
pub inlay_hints: Option<InlayHintSettings>,
}
Fields§
§tab_size: Option<NonZeroU32>
§hard_tabs: Option<bool>
§soft_wrap: Option<SoftWrap>
§preferred_line_length: Option<u32>
§show_wrap_guides: Option<bool>
§wrap_guides: Option<Vec<usize, Global>>
§format_on_save: Option<FormatOnSave>
§remove_trailing_whitespace_on_save: Option<bool>
§ensure_final_newline_on_save: Option<bool>
§formatter: Option<Formatter>
§prettier: Option<HashMap<String, Value, RandomState>>
§enable_language_server: Option<bool>
§show_copilot_suggestions: Option<bool>
§show_whitespaces: Option<ShowWhitespaceSetting>
§extend_comment_on_newline: Option<bool>
§inlay_hints: Option<InlayHintSettings>
Trait Implementations§
source§impl Clone for LanguageSettingsContent
impl Clone for LanguageSettingsContent
source§fn clone(&self) -> LanguageSettingsContent
fn clone(&self) -> LanguageSettingsContent
Returns a copy 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 Default for LanguageSettingsContent
impl Default for LanguageSettingsContent
source§fn default() -> LanguageSettingsContent
fn default() -> LanguageSettingsContent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LanguageSettingsContent
impl<'de> Deserialize<'de> for LanguageSettingsContent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LanguageSettingsContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<LanguageSettingsContent, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for LanguageSettingsContent
impl JsonSchema for LanguageSettingsContent
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 moresource§impl Serialize for LanguageSettingsContent
impl Serialize for LanguageSettingsContent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LanguageSettingsContent
impl Send for LanguageSettingsContent
impl Sync for LanguageSettingsContent
impl Unpin for LanguageSettingsContent
impl UnwindSafe for LanguageSettingsContent
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