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