pub struct Script {
pub id: i32,
pub name: String,
pub data: String,
}
Expand description
A decompressed script
Fields§
§id: i32
A randomly-generated script id.
This should always be positive.
name: String
The name of the script.
data: String
The script data.
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
Source§impl<'a> FromValue<'a> for Script
impl<'a> FromValue<'a> for Script
Source§fn from_value(
ctx: &FromValueContext<'a>,
value: &Value,
) -> Result<Self, FromValueError>
fn from_value( ctx: &FromValueContext<'a>, value: &Value, ) -> Result<Self, FromValueError>
Create this type from the given value from the [
ValueArena
]. Read moreAuto 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