pub struct CodeActionTemplate {
pub name: String,
pub title: String,
pub kind: String,
pub transformation: String,
}Expand description
Code action template configuration
Fields§
§name: StringAction name
title: StringAction title
kind: StringAction kind: “quickfix”, “refactor”, “source”
transformation: StringTransformation template
Implementations§
Source§impl CodeActionTemplate
impl CodeActionTemplate
Sourcepub fn validate(&self) -> ConfigResult<()>
pub fn validate(&self) -> ConfigResult<()>
Validate the code action template
Trait Implementations§
Source§impl Clone for CodeActionTemplate
impl Clone for CodeActionTemplate
Source§fn clone(&self) -> CodeActionTemplate
fn clone(&self) -> CodeActionTemplate
Returns a duplicate 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 CodeActionTemplate
impl Debug for CodeActionTemplate
Source§impl<'de> Deserialize<'de> for CodeActionTemplate
impl<'de> Deserialize<'de> for CodeActionTemplate
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
Auto Trait Implementations§
impl Freeze for CodeActionTemplate
impl RefUnwindSafe for CodeActionTemplate
impl Send for CodeActionTemplate
impl Sync for CodeActionTemplate
impl Unpin for CodeActionTemplate
impl UnwindSafe for CodeActionTemplate
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