Struct rpgmxp_types::state::State

source ·
pub struct State {
Show 28 fields pub eva: i32, pub hold_turn: i32, pub hit_rate: i32, pub minus_state_set: Vec<i32>, pub atk_rate: i32, pub zero_hp: bool, pub name: String, pub str_rate: i32, pub slip_damage: bool, pub battle_only: bool, pub plus_state_set: Vec<i32>, pub int_rate: i32, pub nonresistance: bool, pub rating: i32, pub shock_release_prob: i32, pub maxsp_rate: i32, pub mdef_rate: i32, pub cant_evade: bool, pub agi_rate: i32, pub restriction: i32, pub auto_release_prob: i32, pub maxhp_rate: i32, pub guard_element_set: Vec<i32>, pub cant_get_exp: bool, pub pdef_rate: i32, pub id: i32, pub animation_id: i32, pub dex_rate: i32,
}

Fields§

§eva: i32§hold_turn: i32§hit_rate: i32§minus_state_set: Vec<i32>§atk_rate: i32§zero_hp: bool§name: String§str_rate: i32§slip_damage: bool§battle_only: bool§plus_state_set: Vec<i32>§int_rate: i32§nonresistance: bool§rating: i32§shock_release_prob: i32§maxsp_rate: i32§mdef_rate: i32§cant_evade: bool§agi_rate: i32§restriction: i32§auto_release_prob: i32§maxhp_rate: i32§guard_element_set: Vec<i32>§cant_get_exp: bool§pdef_rate: i32§id: i32§animation_id: i32§dex_rate: i32

Trait Implementations§

source§

impl Debug for State

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for State

source§

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 State

source§

fn from_value( ctx: &FromValueContext<'_>, value: &'a Value, ) -> Result<Self, FromValueError>

Create this type from the given value from the [ValueArena]. Read more
source§

impl IntoValue for State

source§

fn into_value( self, arena: &mut ValueArena, ) -> Result<ValueHandle, IntoValueError>

Turn this type into a Ruby Value.
source§

impl Serialize for State

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for State

§

impl RefUnwindSafe for State

§

impl Send for State

§

impl Sync for State

§

impl Unpin for State

§

impl UnwindSafe for State

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,