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<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 CompressedScript
impl<'a> FromValue<'a> for CompressedScript
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 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.
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