pub struct ScriptSource {
pub id: String,
pub origin: BlockOrigin,
pub code: String,
}Expand description
A piece of code to run, and whose it is.
Fields§
§id: StringWhat to call this in errors and logs — usually its path.
origin: BlockOriginWhose code this is. Decides what it is allowed to do at a hook point;
see crate::interface::prompt_assembly::Authority.
code: StringTrait Implementations§
Source§impl Clone for ScriptSource
impl Clone for ScriptSource
Auto Trait Implementations§
impl Forget for ScriptSource
impl Freeze for ScriptSource
impl Move for ScriptSource
impl RefUnwindSafe for ScriptSource
impl Send for ScriptSource
impl Sync for ScriptSource
impl Unpin for ScriptSource
impl UnsafeUnpin for ScriptSource
impl UnwindSafe for ScriptSource
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