pub enum DirectoryCreationStrategy {
AutoCreate,
Disallow,
}Expand description
Strategy for how to handle missing directories when ensuring they exist.
Note: This enum is intentionally non-interactive. CLI or GUI code that needs
to prompt users should handle that logic separately and then pass AutoCreate
or Disallow to ensure_directory.
Variants§
AutoCreate
Create directories automatically if they are missing.
Disallow
Do not create directories; return an error if missing.
Trait Implementations§
Source§impl Clone for DirectoryCreationStrategy
impl Clone for DirectoryCreationStrategy
Source§fn clone(&self) -> DirectoryCreationStrategy
fn clone(&self) -> DirectoryCreationStrategy
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 DirectoryCreationStrategy
impl Debug for DirectoryCreationStrategy
Source§impl Default for DirectoryCreationStrategy
impl Default for DirectoryCreationStrategy
Source§fn default() -> DirectoryCreationStrategy
fn default() -> DirectoryCreationStrategy
Returns the “default value” for a type. Read more
impl Copy for DirectoryCreationStrategy
impl Eq for DirectoryCreationStrategy
impl StructuralPartialEq for DirectoryCreationStrategy
Auto Trait Implementations§
impl Freeze for DirectoryCreationStrategy
impl RefUnwindSafe for DirectoryCreationStrategy
impl Send for DirectoryCreationStrategy
impl Sync for DirectoryCreationStrategy
impl Unpin for DirectoryCreationStrategy
impl UnwindSafe for DirectoryCreationStrategy
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