documents/
create.rs

1/// Whether to create a new file to be represented by this Document.
2///
3/// *No*: do not create a new file under any circumstances. If the file does not exist, the [`Document`](Document) instance will fail to be created.
4///
5/// *OnlyIfNotExists*: create a new file if the file does not exist.
6///
7/// *AutoRenameIfExists*: create a new file under all circumstances. If a file of the same name already exists in the specified folder,
8/// add (1), (2), etc. to the file name to avoid collision (before the file extension).
9#[derive(Debug, Clone, Copy, PartialEq, Hash, Default)]
10pub enum Create {
11    #[default]
12    No,
13    OnlyIfNotExists,
14    AutoRenameIfExists,
15}