pub enum IfExists {
Overwrite,
Error,
Number,
}Expand description
What to do when a file already exists at the delivery path.
Variants§
Overwrite
Replace it (the default: a rerun replaces a bad file).
Error
Fail this delivery.
Number
Keep both: the new file is saved as <name>_2.<ext>, _3, and so on.
Implementations§
Trait Implementations§
impl Copy for IfExists
impl Eq for IfExists
impl StructuralPartialEq for IfExists
Auto Trait Implementations§
impl Freeze for IfExists
impl RefUnwindSafe for IfExists
impl Send for IfExists
impl Sync for IfExists
impl Unpin for IfExists
impl UnsafeUnpin for IfExists
impl UnwindSafe for IfExists
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.