pub enum ExistingFileConflictPolicyKind {
Error,
Skip,
Overwrite,
OverwriteKeepingHistory,
}Expand description
Normalized per-file conflict semantics shared by direct-upload services such as Internet Archive.
Variants§
Error
Fail when a file with the same name already exists.
Skip
Skip uploads whose names already exist.
Overwrite
Replace the existing file in place.
OverwriteKeepingHistory
Replace the existing file while preserving history on the remote service.
Trait Implementations§
Source§impl Clone for ExistingFileConflictPolicyKind
impl Clone for ExistingFileConflictPolicyKind
Source§fn clone(&self) -> ExistingFileConflictPolicyKind
fn clone(&self) -> ExistingFileConflictPolicyKind
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 PartialEq for ExistingFileConflictPolicyKind
impl PartialEq for ExistingFileConflictPolicyKind
Source§fn eq(&self, other: &ExistingFileConflictPolicyKind) -> bool
fn eq(&self, other: &ExistingFileConflictPolicyKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExistingFileConflictPolicyKind
impl Eq for ExistingFileConflictPolicyKind
impl StructuralPartialEq for ExistingFileConflictPolicyKind
Auto Trait Implementations§
impl Freeze for ExistingFileConflictPolicyKind
impl RefUnwindSafe for ExistingFileConflictPolicyKind
impl Send for ExistingFileConflictPolicyKind
impl Sync for ExistingFileConflictPolicyKind
impl Unpin for ExistingFileConflictPolicyKind
impl UnsafeUnpin for ExistingFileConflictPolicyKind
impl UnwindSafe for ExistingFileConflictPolicyKind
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