Struct lsp_types::CompletionItemLabelDetails
source · 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§
source§impl Clone for CompletionItemLabelDetails
impl Clone for CompletionItemLabelDetails
source§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 moresource§impl Debug for CompletionItemLabelDetails
impl Debug for CompletionItemLabelDetails
source§impl Default for CompletionItemLabelDetails
impl Default for CompletionItemLabelDetails
source§fn default() -> CompletionItemLabelDetails
fn default() -> CompletionItemLabelDetails
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CompletionItemLabelDetails
impl<'de> Deserialize<'de> for CompletionItemLabelDetails
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
impl StructuralPartialEq for CompletionItemLabelDetails
Auto Trait Implementations§
impl Freeze for CompletionItemLabelDetails
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)