pub enum Mapping<'left, 'right>where
Self: 'left + 'right,{
AsIs(Match, (Expr<'left>, Expr<'right>)),
Into(Match, (Expr<'left>, Expr<'right>)),
ManyInto {
sources: Vec<Match>,
target: PathBuf,
excluded: Vec<Match>,
exprs: (Expr<'left>, Expr<'right>),
},
}Variants§
AsIs(Match, (Expr<'left>, Expr<'right>))
Copy source to target as-is.
Into(Match, (Expr<'left>, Expr<'right>))
Copy source into target as-is.
ManyInto
Implementations§
Trait Implementations§
Source§impl<'t> EnvRequired<'t> for Mapping<'_, '_>where
Self: 't,
impl<'t> EnvRequired<'t> for Mapping<'_, '_>where
Self: 't,
Source§impl<'left, 'right> Serialize for Mapping<'left, 'right>where
Mapping<'left, 'right>: 'left + 'right,
impl<'left, 'right> Serialize for Mapping<'left, 'right>where
Mapping<'left, 'right>: 'left + 'right,
impl<'left, 'right> Eq for Mapping<'left, 'right>where
Self: 'left + 'right,
impl<'left, 'right> StructuralPartialEq for Mapping<'left, 'right>where
Self: 'left + 'right,
Auto Trait Implementations§
impl<'left, 'right> Freeze for Mapping<'left, 'right>
impl<'left, 'right> RefUnwindSafe for Mapping<'left, 'right>
impl<'left, 'right> Send for Mapping<'left, 'right>
impl<'left, 'right> Sync for Mapping<'left, 'right>
impl<'left, 'right> Unpin for Mapping<'left, 'right>
impl<'left, 'right> UnwindSafe for Mapping<'left, 'right>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more