pub struct ScriptBase {
pub params: Option<Value>,
}Fields§
§params: Option<Value>Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compilation time.
Implementations§
Source§impl ScriptBase
impl ScriptBase
pub fn new() -> ScriptBase
Trait Implementations§
Source§impl Clone for ScriptBase
impl Clone for ScriptBase
Source§fn clone(&self) -> ScriptBase
fn clone(&self) -> ScriptBase
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 ScriptBase
impl Debug for ScriptBase
Source§impl Default for ScriptBase
impl Default for ScriptBase
Source§fn default() -> ScriptBase
fn default() -> ScriptBase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptBase
impl<'de> Deserialize<'de> for ScriptBase
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 PartialEq for ScriptBase
impl PartialEq for ScriptBase
Source§fn eq(&self, other: &ScriptBase) -> bool
fn eq(&self, other: &ScriptBase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptBase
impl Serialize for ScriptBase
impl StructuralPartialEq for ScriptBase
Auto Trait Implementations§
impl Freeze for ScriptBase
impl RefUnwindSafe for ScriptBase
impl Send for ScriptBase
impl Sync for ScriptBase
impl Unpin for ScriptBase
impl UnsafeUnpin for ScriptBase
impl UnwindSafe for ScriptBase
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