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
sourceimpl Clone for ScriptValue
impl Clone for ScriptValue
sourcefn clone(&self) -> ScriptValue
fn clone(&self) -> ScriptValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScriptValue
impl Debug for ScriptValue
sourceimpl<'de> Deserialize<'de> for ScriptValue
impl<'de> Deserialize<'de> for ScriptValue
sourcefn 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
sourceimpl Serialize for ScriptValue
impl Serialize for ScriptValue
Auto Trait Implementations
impl RefUnwindSafe for ScriptValue
impl Send for ScriptValue
impl Sync for ScriptValue
impl Unpin for ScriptValue
impl UnwindSafe for ScriptValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more