pub struct MessageExecute {
    pub return_id: u64,
    pub guid: String,
    pub script: String,
}
Expand description

Executes a lua script and returns the value in a AnswerReturn message. Using a guid of “-1” runs the script globally.

Fields§

§return_id: u64

Return Id of the execute message

§guid: String

The guid the message gets executed on

§script: String

The script that gets executed

Implementations§

Constructs a new Execute Lua Code Message that executes code globally

Constructs a new Execute Lua Code Message that executes code on an object

Returns self as Message::MessageExectute

Trait Implementations§

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.