Struct ink_analyzer::Action
source · pub struct Action {
pub label: String,
pub kind: ActionKind,
pub range: TextRange,
pub edits: Vec<TextEdit>,
}Expand description
An ink! attribute code/intent action.
Fields§
§label: StringLabel which identifies the action.
kind: ActionKindThe kind of the action (e.g quickfix or refactor).
range: TextRangeRange where the action is activated.
edits: Vec<TextEdit>Text edits that will performed by the action.
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl Eq for Action
impl StructuralEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.