Enum cli::types::ScriptValue
source · pub enum ScriptValue {
SingleLine(String),
Text(Vec<String>),
File(FileScriptValue),
Sections(ScriptSections),
}
Expand description
Script value (text, file name, …)
Variants§
SingleLine(String)
The script text as single line
Text(Vec<String>)
The script text lines
File(FileScriptValue)
Script file name
Sections(ScriptSections)
Script content split to multiple parts to enable fine tuned extension
Trait Implementations§
source§impl Clone for ScriptValue
impl Clone for ScriptValue
source§fn clone(&self) -> ScriptValue
fn clone(&self) -> ScriptValue
Returns a copy 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 ScriptValue
impl Debug for ScriptValue
source§impl<'de> Deserialize<'de> for ScriptValue
impl<'de> Deserialize<'de> for ScriptValue
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 ScriptValue
impl RefUnwindSafe for ScriptValue
impl Send for ScriptValue
impl Sync for ScriptValue
impl Unpin for ScriptValue
impl UnwindSafe for ScriptValue
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more