pub struct ScriptField {
pub name: String,
pub script_path: Option<String>,
pub inline_source: String,
pub bound_globals: HashMap<String, String>,
}Expand description
A script file reference with an embedded source snippet.
Fields§
§name: String§script_path: Option<String>§inline_source: String§bound_globals: HashMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for ScriptField
impl Clone for ScriptField
Source§fn clone(&self) -> ScriptField
fn clone(&self) -> ScriptField
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ScriptField
impl RefUnwindSafe for ScriptField
impl Send for ScriptField
impl Sync for ScriptField
impl Unpin for ScriptField
impl UnsafeUnpin for ScriptField
impl UnwindSafe for ScriptField
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