pub struct CodeActionRow {
pub title: String,
pub kind_glyph: &'static str,
pub action: CodeActionOrCommand,
}Expand description
One row of a code-action picker. Carries the action title,
kind glyph, and the original CodeAction payload (or its
raw Command-only form). Action items survive on the App
across the request → picker accept gap so the resolve /
apply path can read them by index.
Fields§
§title: String§kind_glyph: &'static str§action: CodeActionOrCommandTrait Implementations§
Source§impl Clone for CodeActionRow
impl Clone for CodeActionRow
Source§fn clone(&self) -> CodeActionRow
fn clone(&self) -> CodeActionRow
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CodeActionRow
impl Freeze for CodeActionRow
impl Send for CodeActionRow
impl Sync for CodeActionRow
impl Unpin for CodeActionRow
impl UnsafeUnpin for CodeActionRow
impl UnwindSafe for CodeActionRow
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more