Struct lsp2::CompletionListItemDefaults
pub struct CompletionListItemDefaults {
pub commit_characters: Option<Vec<String, Global>>,
pub edit_range: Option<CompletionListItemDefaultsEditRange>,
pub insert_text_format: Option<InsertTextFormat>,
pub insert_text_mode: Option<InsertTextMode>,
pub data: Option<Value>,
}
Fields§
§commit_characters: Option<Vec<String, Global>>
A default commit character set
@since 3.17.0
edit_range: Option<CompletionListItemDefaultsEditRange>
A default edit range
@since 3.17.0
insert_text_format: Option<InsertTextFormat>
A default insert text format
@since 3.17.0
insert_text_mode: Option<InsertTextMode>
A default insert text mode
@since 3.17.0
data: Option<Value>
A default data value
@since 3.17.0
Trait Implementations§
§impl Clone for CompletionListItemDefaults
impl Clone for CompletionListItemDefaults
§fn clone(&self) -> CompletionListItemDefaults
fn clone(&self) -> CompletionListItemDefaults
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 more§impl Debug for CompletionListItemDefaults
impl Debug for CompletionListItemDefaults
§impl Default for CompletionListItemDefaults
impl Default for CompletionListItemDefaults
§fn default() -> CompletionListItemDefaults
fn default() -> CompletionListItemDefaults
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for CompletionListItemDefaults
impl<'de> Deserialize<'de> for CompletionListItemDefaults
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionListItemDefaults, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionListItemDefaults, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CompletionListItemDefaults> for CompletionListItemDefaults
impl PartialEq<CompletionListItemDefaults> for CompletionListItemDefaults
§fn eq(&self, other: &CompletionListItemDefaults) -> bool
fn eq(&self, other: &CompletionListItemDefaults) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionListItemDefaults
impl Serialize for CompletionListItemDefaults
§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
impl StructuralPartialEq for CompletionListItemDefaults
Auto Trait Implementations§
impl RefUnwindSafe for CompletionListItemDefaults
impl Send for CompletionListItemDefaults
impl Sync for CompletionListItemDefaults
impl Unpin for CompletionListItemDefaults
impl UnwindSafe for CompletionListItemDefaults
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