Struct rscript::ScriptInfo [−][src]
Expand description
Script metadata that every script should send to the main_crate when starting up after receiving the greeting message Message::Greeting
Fields
name: String
Script name
script_type: ScriptType
Script type: Daemon/OneShot
hooks: Box<[String]>
The hooks that the script wants to listen to
Implementations
pub fn new(
name: &'static str,
script_type: ScriptType,
hooks: &'static [&'static str]
) -> Self
pub fn new(
name: &'static str,
script_type: ScriptType,
hooks: &'static [&'static str]
) -> Self
Create a new script metadata, the new constructor tries to add more ergonomics
Trait Implementations
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 RefUnwindSafe for ScriptInfo
impl Send for ScriptInfo
impl Sync for ScriptInfo
impl Unpin for ScriptInfo
impl UnwindSafe for ScriptInfo