pub struct RenamingRule {
pub pattern: Regex,
pub substitution: String,
}Expand description
A single renaming rule, used for generating names for target files which are different from their sources.
Fields§
§pattern: RegexA regular expression, specifies the pattern against which item names are matched. Regular expression’s capture groups (indexed or named) are supported. See the documentation for more instructions on this.
substitution: StringThe substitution rule to apply if pattern matches an item, indexed/named capture groups are allowed.
Trait Implementations§
Source§impl Clone for RenamingRule
impl Clone for RenamingRule
Source§fn clone(&self) -> RenamingRule
fn clone(&self) -> RenamingRule
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 RenamingRule
impl Debug for RenamingRule
Source§impl<'de> Deserialize<'de> for RenamingRule
impl<'de> Deserialize<'de> for RenamingRule
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 RenamingRule
impl RefUnwindSafe for RenamingRule
impl Send for RenamingRule
impl Sync for RenamingRule
impl Unpin for RenamingRule
impl UnwindSafe for RenamingRule
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