pub enum CreateMode {
Copy,
Symlink,
Hardlink,
}Expand description
Strategy used to materialize playground contents into a temporary directory.
Variants§
Copy
Recursively copy files into the temporary directory.
Symlink
Create symlinks from the temporary directory back to the playground.
Hardlink
Recreate directories and hard-link regular files into the temporary directory.
Trait Implementations§
Source§impl Clone for CreateMode
impl Clone for CreateMode
Source§fn clone(&self) -> CreateMode
fn clone(&self) -> CreateMode
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 CreateMode
impl Debug for CreateMode
Source§impl Default for CreateMode
impl Default for CreateMode
Source§fn default() -> CreateMode
fn default() -> CreateMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateMode
impl<'de> Deserialize<'de> for CreateMode
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
Source§impl JsonSchema for CreateMode
impl JsonSchema for CreateMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CreateMode
impl PartialEq for CreateMode
Source§impl Serialize for CreateMode
impl Serialize for CreateMode
impl Copy for CreateMode
impl Eq for CreateMode
impl StructuralPartialEq for CreateMode
Auto Trait Implementations§
impl Freeze for CreateMode
impl RefUnwindSafe for CreateMode
impl Send for CreateMode
impl Sync for CreateMode
impl Unpin for CreateMode
impl UnsafeUnpin for CreateMode
impl UnwindSafe for CreateMode
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