pub struct SpecIntrospection {
pub resource_primary: ResourceInfo,
pub resource_secondary: Option<ResourceInfo>,
pub spells: Vec<SpellInfo>,
pub auras: Vec<AuraInfo>,
pub auto_attacks: Vec<AutoAttackInfo>,
pub hero_talents: Vec<HeroTalentTree>,
}Fields§
§resource_primary: ResourceInfo§resource_secondary: Option<ResourceInfo>§spells: Vec<SpellInfo>§auras: Vec<AuraInfo>§auto_attacks: Vec<AutoAttackInfo>§hero_talents: Vec<HeroTalentTree>Trait Implementations§
Source§impl Clone for SpecIntrospection
impl Clone for SpecIntrospection
Source§fn clone(&self) -> SpecIntrospection
fn clone(&self) -> SpecIntrospection
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 SpecIntrospection
impl Debug for SpecIntrospection
Source§impl Default for SpecIntrospection
impl Default for SpecIntrospection
Source§fn default() -> SpecIntrospection
fn default() -> SpecIntrospection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpecIntrospection
impl<'de> Deserialize<'de> for SpecIntrospection
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<SpecIntrospection> for JsValuewhere
SpecIntrospection: Serialize,
impl From<SpecIntrospection> for JsValuewhere
SpecIntrospection: Serialize,
Source§fn from(value: SpecIntrospection) -> Self
fn from(value: SpecIntrospection) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
impl FromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &SpecIntrospectionwhere
SpecIntrospection: Serialize,
impl IntoWasmAbi for &SpecIntrospectionwhere
SpecIntrospection: Serialize,
Source§impl IntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
impl IntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
Source§impl OptionFromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
impl OptionIntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
Source§impl PartialEq for SpecIntrospection
impl PartialEq for SpecIntrospection
Source§impl RefFromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SpecIntrospectionwhere
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<SpecIntrospection>
type Anchor = SelfOwner<SpecIntrospection>
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 SpecIntrospection
impl Serialize for SpecIntrospection
Source§impl Tsify for SpecIntrospection
impl Tsify for SpecIntrospection
const DECL: &'static str = "export interface SpecIntrospection {\n resource_primary: ResourceInfo;\n resource_secondary: ResourceInfo | undefined;\n spells: SpellInfo[];\n auras: AuraInfo[];\n auto_attacks: AutoAttackInfo[];\n hero_talents: HeroTalentTree[];\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 SpecIntrospectionwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SpecIntrospectionwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
impl VectorIntoWasmAbi for SpecIntrospectionwhere
SpecIntrospection: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for SpecIntrospection
impl WasmDescribe for SpecIntrospection
impl StructuralPartialEq for SpecIntrospection
Auto Trait Implementations§
impl Freeze for SpecIntrospection
impl RefUnwindSafe for SpecIntrospection
impl Send for SpecIntrospection
impl Sync for SpecIntrospection
impl Unpin for SpecIntrospection
impl UnsafeUnpin for SpecIntrospection
impl UnwindSafe for SpecIntrospection
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.