pub enum Create {
No,
OnlyIfNotExists,
AutoRenameIfExists,
}Expand description
Whether to create a new file to be represented by this Document.
No: do not create a new file under any circumstances. If the file does not exist, the Document instance will fail to be created.
OnlyIfNotExists: create a new file if the file does not exist.
AutoRenameIfExists: create a new file under all circumstances. If a file of the same name already exists in the specified folder, add (1), (2), etc. to the file name to avoid collision (before the file extension).
Variants§
Trait Implementations§
impl Copy for Create
impl StructuralPartialEq for Create
Auto Trait Implementations§
impl Freeze for Create
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
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