pub enum ScenarioRef {
Inline(String),
Name(String),
File(PathBuf),
}Expand description
Reference to a scenario used in SpecKind::Eval.
Variants§
Inline(String)
Inline scenario content as a string.
Name(String)
Name of an installed scenario (looked up from ~/.algocline/scenarios/).
File(PathBuf)
Path to a scenario file on the local file system.
Trait Implementations§
Source§impl Clone for ScenarioRef
impl Clone for ScenarioRef
Source§fn clone(&self) -> ScenarioRef
fn clone(&self) -> ScenarioRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScenarioRef
impl Debug for ScenarioRef
Source§impl<'de> Deserialize<'de> for ScenarioRef
impl<'de> Deserialize<'de> for ScenarioRef
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 ScenarioRef
impl RefUnwindSafe for ScenarioRef
impl Send for ScenarioRef
impl Sync for ScenarioRef
impl Unpin for ScenarioRef
impl UnsafeUnpin for ScenarioRef
impl UnwindSafe for ScenarioRef
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