pub struct ScriptingDefinitionData {
pub language: String,
pub file_extension: Option<String>,
pub start_code: String,
pub end_code: String,
}Expand description
§ScriptingDefinition
- Defines global properties for scripting that’s used throughout its parent Collection.
Fields§
§language: StringName of the Script
file_extension: Option<String>Optional file extension for the said script
start_code: String- Code that’ll be inserted on top of user created script.
- Global variables such as
$homepage,$version,$datecan be used using parameter substitution code syntax such asWelcome to {{ $homepage }}!
end_code: String- Code that’ll be inserted at the end of user created script.
- Global variables such as
$homepage,$version,$datecan be used using parameter substitution code syntax such asWelcome to {{ $homepage }}!
Trait Implementations§
Source§impl Debug for ScriptingDefinitionData
impl Debug for ScriptingDefinitionData
Source§impl<'de> Deserialize<'de> for ScriptingDefinitionData
impl<'de> Deserialize<'de> for ScriptingDefinitionData
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 ScriptingDefinitionData
impl RefUnwindSafe for ScriptingDefinitionData
impl Send for ScriptingDefinitionData
impl Sync for ScriptingDefinitionData
impl Unpin for ScriptingDefinitionData
impl UnwindSafe for ScriptingDefinitionData
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