pub enum Strategy {
Simple,
Wide,
Deep,
Directory,
File,
}Expand description
Enum for describing how to generate a file structure This is used for generating random data for testing
Variants§
Simple
Generate exactly the file structure requested
Wide
Generate a wide version of the file structure requested – half as deep, twice as wide
Deep
Generate a deep version of the file structure requested – twice as deep, half as wide
Directory
Generate a very shallow version of the file structure requested –
File
Generate one big file with the requested size at the specified path
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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