pub struct Script {
pub name: String,
pub mode: ScriptMode,
pub version: String,
pub run_time: bool,
pub path: Option<String>,
}Expand description
Information of a client-side JavaScript script (ECMA 5.1). All attributes, except Path, are mandatory.
Fields§
§name: StringThe name of the script, should correspond to it’s scope, two or three levels.
mode: ScriptModeThe mode of the script.
version: StringThe version of the script:
Release numbers bigger than 100 mark bug fixes/patches.
run_time: boolThe operation mode. For client-side scripts it must be true.
path: Option<String>Optional path to the JavaScript file, fallback: Name + “.js”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Script
impl<'de> Deserialize<'de> for Script
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
impl StructuralPartialEq for Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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