pub struct SpellInfo {Show 17 fields
pub spell_id: u32,
pub name: String,
pub slug: String,
pub cast_time_ms: u32,
pub start_recovery_category: Option<CooldownCategoryId>,
pub off_gcd: bool,
pub gcd_ms: u32,
pub is_pet: bool,
pub breaks_stealth: bool,
pub resource_cost: f64,
pub resource_gain: f64,
pub secondary_resource_cost: f64,
pub secondary_resource_gain: f64,
pub damage: DamageInfo,
pub applies_aura_id: Option<u32>,
pub cooldown: Option<CooldownInfo>,
pub cdr_effects: Vec<CdrEffect>,
}Fields§
§spell_id: u32§name: String§slug: String§cast_time_ms: u32§start_recovery_category: Option<CooldownCategoryId>§off_gcd: bool§gcd_ms: u32§is_pet: bool§breaks_stealth: bool§resource_cost: f64§resource_gain: f64§secondary_resource_cost: f64§secondary_resource_gain: f64§damage: DamageInfo§applies_aura_id: Option<u32>§cooldown: Option<CooldownInfo>§cdr_effects: Vec<CdrEffect>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpellInfo
impl<'de> Deserialize<'de> for SpellInfo
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 FromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
impl FromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &SpellInfo
impl IntoWasmAbi for &SpellInfo
Source§impl IntoWasmAbi for SpellInfo
impl IntoWasmAbi for SpellInfo
Source§impl OptionFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for SpellInfo
impl OptionIntoWasmAbi for SpellInfo
Source§impl RefFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§impl Tsify for SpellInfo
impl Tsify for SpellInfo
const DECL: &'static str = "export interface SpellInfo {\n spell_id: number;\n name: string;\n slug: string;\n cast_time_ms: number;\n start_recovery_category: CooldownCategoryId | undefined;\n off_gcd: boolean;\n gcd_ms: number;\n is_pet: boolean;\n breaks_stealth: boolean;\n resource_cost: number;\n resource_gain: number;\n secondary_resource_cost: number;\n secondary_resource_gain: number;\n damage: DamageInfo;\n applies_aura_id: number | undefined;\n cooldown: CooldownInfo | undefined;\n cdr_effects: CdrEffect[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SpellInfowhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for SpellInfo
impl VectorIntoWasmAbi for SpellInfo
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for SpellInfo
impl WasmDescribeVector for SpellInfo
impl StructuralPartialEq for SpellInfo
Auto Trait Implementations§
impl Freeze for SpellInfo
impl RefUnwindSafe for SpellInfo
impl Send for SpellInfo
impl Sync for SpellInfo
impl Unpin for SpellInfo
impl UnsafeUnpin for SpellInfo
impl UnwindSafe for SpellInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.