Struct lsp2::CompletionItemLabelDetails
pub struct CompletionItemLabelDetails {
pub detail: Option<String>,
pub description: Option<String>,
}
Expand description
Additional details for a completion item label.
@since 3.17.0
Fields§
§detail: Option<String>
An optional string which is rendered less prominently directly after {@link CompletionItemLabel.label label}, without any spacing. Should be used for function signatures or type annotations.
description: Option<String>
An optional string which is rendered less prominently after {@link CompletionItemLabel.detail}. Should be used for fully qualified names or file path.
Trait Implementations§
§impl Clone for CompletionItemLabelDetails
impl Clone for CompletionItemLabelDetails
§fn clone(&self) -> CompletionItemLabelDetails
fn clone(&self) -> CompletionItemLabelDetails
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 CompletionItemLabelDetails
impl Debug for CompletionItemLabelDetails
§impl Default for CompletionItemLabelDetails
impl Default for CompletionItemLabelDetails
§fn default() -> CompletionItemLabelDetails
fn default() -> CompletionItemLabelDetails
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for CompletionItemLabelDetails
impl<'de> Deserialize<'de> for CompletionItemLabelDetails
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionItemLabelDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionItemLabelDetails, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CompletionItemLabelDetails> for CompletionItemLabelDetails
impl PartialEq<CompletionItemLabelDetails> for CompletionItemLabelDetails
§fn eq(&self, other: &CompletionItemLabelDetails) -> bool
fn eq(&self, other: &CompletionItemLabelDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionItemLabelDetails
impl Serialize for CompletionItemLabelDetails
§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 CompletionItemLabelDetails
Auto Trait Implementations§
impl RefUnwindSafe for CompletionItemLabelDetails
impl Send for CompletionItemLabelDetails
impl Sync for CompletionItemLabelDetails
impl Unpin for CompletionItemLabelDetails
impl UnwindSafe for CompletionItemLabelDetails
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