#[non_exhaustive]pub enum PeriodicEffect {
FlatDamage {
amount: f64,
is_physical: bool,
},
Damage {
ap_coef: f64,
is_physical: bool,
},
SpDamage {
sp_coef: f64,
is_physical: bool,
},
MaxHealthDamage {
percent: f64,
is_physical: bool,
},
ResourceGain {
amount: f64,
},
ResourceDrain {
amount: f64,
},
ApplyAura {
target_aura_local: u8,
},
ResidualDamage,
RemoveStack,
Hook,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FlatDamage
Damage
SpDamage
MaxHealthDamage
ResourceGain
ResourceDrain
ApplyAura
ResidualDamage
RemoveStack
Hook
Trait Implementations§
Source§impl Clone for PeriodicEffect
impl Clone for PeriodicEffect
Source§fn clone(&self) -> PeriodicEffect
fn clone(&self) -> PeriodicEffect
Returns a duplicate 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 PeriodicEffect
impl Debug for PeriodicEffect
Source§impl<'de> Deserialize<'de> for PeriodicEffect
impl<'de> Deserialize<'de> for PeriodicEffect
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 Display for PeriodicEffect
impl Display for PeriodicEffect
Source§impl From<PeriodicEffect> for JsValuewhere
PeriodicEffect: Serialize,
impl From<PeriodicEffect> for JsValuewhere
PeriodicEffect: Serialize,
Source§fn from(value: PeriodicEffect) -> Self
fn from(value: PeriodicEffect) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
impl FromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &PeriodicEffectwhere
PeriodicEffect: Serialize,
impl IntoWasmAbi for &PeriodicEffectwhere
PeriodicEffect: Serialize,
Source§impl IntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
impl IntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
Source§impl OptionFromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
impl OptionIntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
Source§impl PartialEq for PeriodicEffect
impl PartialEq for PeriodicEffect
Source§impl RefFromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for PeriodicEffectwhere
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§type Anchor = SelfOwner<PeriodicEffect>
type Anchor = SelfOwner<PeriodicEffect>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for PeriodicEffect
impl Serialize for PeriodicEffect
Source§impl Tsify for PeriodicEffect
impl Tsify for PeriodicEffect
const DECL: &'static str = "export type PeriodicEffect = { type: \"FlatDamage\"; amount: number; is_physical: boolean } | { type: \"Damage\"; ap_coef: number; is_physical: boolean } | { type: \"SpDamage\"; sp_coef: number; is_physical: boolean } | { type: \"MaxHealthDamage\"; percent: number; is_physical: boolean } | { type: \"ResourceGain\"; amount: number } | { type: \"ResourceDrain\"; amount: number } | { type: \"ApplyAura\"; target_aura_local: number } | { type: \"ResidualDamage\" } | { type: \"RemoveStack\" } | { type: \"Hook\" };"
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 PeriodicEffectwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for PeriodicEffectwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
impl VectorIntoWasmAbi for PeriodicEffectwhere
PeriodicEffect: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for PeriodicEffect
impl WasmDescribe for PeriodicEffect
impl StructuralPartialEq for PeriodicEffect
Auto Trait Implementations§
impl Freeze for PeriodicEffect
impl RefUnwindSafe for PeriodicEffect
impl Send for PeriodicEffect
impl Sync for PeriodicEffect
impl Unpin for PeriodicEffect
impl UnsafeUnpin for PeriodicEffect
impl UnwindSafe for PeriodicEffect
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.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more