pub struct CodeActionKindDocumentation {
pub kind: CodeActionKind,
pub command: Command,
}Expand description
Documentation for a class of code actions.
@since 3.18.0 @proposed
Fields§
§kind: CodeActionKindThe kind of the code action being documented.
If the kind is generic, such as CodeActionKind.Refactor, the documentation will be shown whenever any
refactorings are returned. If the kind if more specific, such as CodeActionKind.RefactorExtract, the
documentation will only be shown when extract refactoring code actions are returned.
command: CommandCommand that is ued to display the documentation to the user.
The title of this documentation code action is taken from Command::title
Implementations§
Source§impl CodeActionKindDocumentation
impl CodeActionKindDocumentation
pub const fn new(kind: CodeActionKind, command: Command) -> Self
Trait Implementations§
Source§impl Clone for CodeActionKindDocumentation
impl Clone for CodeActionKindDocumentation
Source§fn clone(&self) -> CodeActionKindDocumentation
fn clone(&self) -> CodeActionKindDocumentation
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 CodeActionKindDocumentation
impl Debug for CodeActionKindDocumentation
Source§impl<'de> Deserialize<'de> for CodeActionKindDocumentation
impl<'de> Deserialize<'de> for CodeActionKindDocumentation
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
Source§impl PartialEq for CodeActionKindDocumentation
impl PartialEq for CodeActionKindDocumentation
Source§fn eq(&self, other: &CodeActionKindDocumentation) -> bool
fn eq(&self, other: &CodeActionKindDocumentation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CodeActionKindDocumentation
impl StructuralPartialEq for CodeActionKindDocumentation
Auto Trait Implementations§
impl Freeze for CodeActionKindDocumentation
impl RefUnwindSafe for CodeActionKindDocumentation
impl Send for CodeActionKindDocumentation
impl Sync for CodeActionKindDocumentation
impl Unpin for CodeActionKindDocumentation
impl UnsafeUnpin for CodeActionKindDocumentation
impl UnwindSafe for CodeActionKindDocumentation
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