pub struct AutoAttackInfo {
pub spell_id: u32,
pub swing_ms: u32,
pub ap_coef: f64,
pub is_pet: bool,
}Fields§
§spell_id: u32§swing_ms: u32§ap_coef: f64§is_pet: boolTrait Implementations§
Source§impl Clone for AutoAttackInfo
impl Clone for AutoAttackInfo
Source§fn clone(&self) -> AutoAttackInfo
fn clone(&self) -> AutoAttackInfo
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 AutoAttackInfo
impl Debug for AutoAttackInfo
Source§impl<'de> Deserialize<'de> for AutoAttackInfo
impl<'de> Deserialize<'de> for AutoAttackInfo
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 From<AutoAttackInfo> for JsValuewhere
AutoAttackInfo: Serialize,
impl From<AutoAttackInfo> for JsValuewhere
AutoAttackInfo: Serialize,
Source§fn from(value: AutoAttackInfo) -> Self
fn from(value: AutoAttackInfo) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
impl FromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &AutoAttackInfowhere
AutoAttackInfo: Serialize,
impl IntoWasmAbi for &AutoAttackInfowhere
AutoAttackInfo: Serialize,
Source§impl IntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
impl IntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
Source§impl OptionFromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
impl OptionIntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
Source§impl PartialEq for AutoAttackInfo
impl PartialEq for AutoAttackInfo
Source§impl RefFromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
impl RefFromWasmAbi for AutoAttackInfowhere
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<AutoAttackInfo>
type Anchor = SelfOwner<AutoAttackInfo>
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 AutoAttackInfo
impl Serialize for AutoAttackInfo
Source§impl Tsify for AutoAttackInfo
impl Tsify for AutoAttackInfo
const DECL: &'static str = "export interface AutoAttackInfo {\n spell_id: number;\n swing_ms: number;\n ap_coef: number;\n is_pet: boolean;\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 AutoAttackInfowhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for AutoAttackInfowhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
impl VectorIntoWasmAbi for AutoAttackInfowhere
AutoAttackInfo: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for AutoAttackInfo
impl WasmDescribe for AutoAttackInfo
impl StructuralPartialEq for AutoAttackInfo
Auto Trait Implementations§
impl Freeze for AutoAttackInfo
impl RefUnwindSafe for AutoAttackInfo
impl Send for AutoAttackInfo
impl Sync for AutoAttackInfo
impl Unpin for AutoAttackInfo
impl UnsafeUnpin for AutoAttackInfo
impl UnwindSafe for AutoAttackInfo
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.