Struct rscript::ScriptInfo[][src]

pub struct ScriptInfo {
    pub name: String,
    pub script_type: ScriptType,
    pub hooks: Box<[String]>,
}
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

Create a new script metadata, the new constructor tries to add more ergonomics

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.