Struct rpgmxp_types::script::CompressedScript
source · pub struct CompressedScript {
pub id: i32,
pub name: String,
pub data: Vec<u8>,
}
Expand description
A compressed script
Fields§
§id: i32
A randomly-generated script id.
This should always be positive.
name: String
The name of the script.
data: Vec<u8>
The zlib-compressed script data.
Trait Implementations§
source§impl Clone for CompressedScript
impl Clone for CompressedScript
source§fn clone(&self) -> CompressedScript
fn clone(&self) -> CompressedScript
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompressedScript
impl Debug for CompressedScript
source§impl<'de> Deserialize<'de> for CompressedScript
impl<'de> Deserialize<'de> for CompressedScript
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompressedScript, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompressedScript, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> FromValue<'a> for CompressedScript
impl<'a> FromValue<'a> for CompressedScript
source§fn from_value(
ctx: &FromValueContext<'a>,
value: &Value,
) -> Result<CompressedScript, FromValueError>
fn from_value( ctx: &FromValueContext<'a>, value: &Value, ) -> Result<CompressedScript, FromValueError>
Create this type from the given value from the [
ValueArena
]. Read moresource§impl IntoValue for CompressedScript
impl IntoValue for CompressedScript
source§fn into_value(
self,
arena: &mut ValueArena,
) -> Result<ValueHandle, IntoValueError>
fn into_value( self, arena: &mut ValueArena, ) -> Result<ValueHandle, IntoValueError>
Turn this type into a Ruby Value.
source§impl Serialize for CompressedScript
impl Serialize for CompressedScript
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CompressedScript
impl RefUnwindSafe for CompressedScript
impl Send for CompressedScript
impl Sync for CompressedScript
impl Unpin for CompressedScript
impl UnwindSafe for CompressedScript
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