#[non_exhaustive]pub struct ScriptEntry {
pub runtime: ScriptRuntime,
pub path: PathBuf,
}Expand description
Script content and the runtime approved to evaluate it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.runtime: ScriptRuntime§path: PathBufImplementations§
Source§impl ScriptEntry
impl ScriptEntry
pub fn new(runtime: ScriptRuntime, path: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ScriptEntry
impl Clone for ScriptEntry
Source§impl Debug for ScriptEntry
impl Debug for ScriptEntry
impl Eq for ScriptEntry
Source§impl PartialEq for ScriptEntry
impl PartialEq for ScriptEntry
impl StructuralPartialEq for ScriptEntry
Auto Trait Implementations§
impl Forget for ScriptEntry
impl Freeze for ScriptEntry
impl Move for ScriptEntry
impl RefUnwindSafe for ScriptEntry
impl Send for ScriptEntry
impl Sync for ScriptEntry
impl Unpin for ScriptEntry
impl UnsafeUnpin for ScriptEntry
impl UnwindSafe for ScriptEntry
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