Struct dt_core::config::RenamingRule
source · [−]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
sourceimpl Clone for RenamingRule
impl Clone for RenamingRule
sourcefn clone(&self) -> RenamingRule
fn clone(&self) -> RenamingRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RenamingRule
impl Debug for RenamingRule
sourceimpl<'de> Deserialize<'de> for RenamingRule
impl<'de> Deserialize<'de> for RenamingRule
sourcefn 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 RefUnwindSafe for RenamingRule
impl Send for RenamingRule
impl Sync for RenamingRule
impl Unpin for RenamingRule
impl UnwindSafe for RenamingRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more