pub enum DraftFilePolicyKind {
ReplaceAll,
UpsertByFilename,
KeepExistingAndAdd,
}Expand description
Normalized draft-file reconciliation semantics shared by Zenodo and Figshare.
Variants§
ReplaceAll
Remove all existing files before publishing the new upload set.
UpsertByFilename
Replace only the files whose names match one of the new uploads.
KeepExistingAndAdd
Keep existing files and add the new uploads alongside them.
Trait Implementations§
Source§impl Clone for DraftFilePolicyKind
impl Clone for DraftFilePolicyKind
Source§fn clone(&self) -> DraftFilePolicyKind
fn clone(&self) -> DraftFilePolicyKind
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 DraftFilePolicyKind
impl Debug for DraftFilePolicyKind
Source§impl Hash for DraftFilePolicyKind
impl Hash for DraftFilePolicyKind
Source§impl PartialEq for DraftFilePolicyKind
impl PartialEq for DraftFilePolicyKind
impl Copy for DraftFilePolicyKind
impl Eq for DraftFilePolicyKind
impl StructuralPartialEq for DraftFilePolicyKind
Auto Trait Implementations§
impl Freeze for DraftFilePolicyKind
impl RefUnwindSafe for DraftFilePolicyKind
impl Send for DraftFilePolicyKind
impl Sync for DraftFilePolicyKind
impl Unpin for DraftFilePolicyKind
impl UnsafeUnpin for DraftFilePolicyKind
impl UnwindSafe for DraftFilePolicyKind
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