pub struct RefactoringPattern {
pub name: String,
pub description: String,
pub template: String,
pub parameters: Vec<PatternParameter>,
pub scope: PatternScope,
}Expand description
A reusable refactoring pattern
Fields§
§name: StringPattern name
description: StringPattern description
template: StringPattern template with placeholders
parameters: Vec<PatternParameter>Pattern parameters
scope: PatternScopePattern scope (global or project)
Trait Implementations§
Source§impl Clone for RefactoringPattern
impl Clone for RefactoringPattern
Source§fn clone(&self) -> RefactoringPattern
fn clone(&self) -> RefactoringPattern
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 RefactoringPattern
impl Debug for RefactoringPattern
Source§impl<'de> Deserialize<'de> for RefactoringPattern
impl<'de> Deserialize<'de> for RefactoringPattern
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 RefactoringPattern
impl RefUnwindSafe for RefactoringPattern
impl Send for RefactoringPattern
impl Sync for RefactoringPattern
impl Unpin for RefactoringPattern
impl UnwindSafe for RefactoringPattern
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