pub struct TextReplacement {
pub path: String,
pub search: String,
pub replace: String,
}Expand description
A single text replacement rule for version sync.
Fields§
§path: StringGlob pattern for files to process.
search: StringRegex pattern to search for (may contain {version} placeholder).
replace: StringReplacement string (may contain {version} placeholder).
Trait Implementations§
Source§impl Clone for TextReplacement
impl Clone for TextReplacement
Source§fn clone(&self) -> TextReplacement
fn clone(&self) -> TextReplacement
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 TextReplacement
impl Debug for TextReplacement
Source§impl<'de> Deserialize<'de> for TextReplacement
impl<'de> Deserialize<'de> for TextReplacement
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 TextReplacement
impl RefUnwindSafe for TextReplacement
impl Send for TextReplacement
impl Sync for TextReplacement
impl Unpin for TextReplacement
impl UnsafeUnpin for TextReplacement
impl UnwindSafe for TextReplacement
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