pub struct ItemEffect {
pub spell_id: i32,
pub trigger_type: i32,
pub charges: i32,
pub cooldown: i32,
pub category_cooldown: i32,
}Fields§
§spell_id: i32§trigger_type: i32§charges: i32§cooldown: i32§category_cooldown: i32Trait Implementations§
Source§impl Clone for ItemEffect
impl Clone for ItemEffect
Source§fn clone(&self) -> ItemEffect
fn clone(&self) -> ItemEffect
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 ItemEffect
impl Debug for ItemEffect
Source§impl<'de> Deserialize<'de> for ItemEffect
impl<'de> Deserialize<'de> for ItemEffect
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<ItemEffect> for JsValuewhere
ItemEffect: Serialize,
impl From<ItemEffect> for JsValuewhere
ItemEffect: Serialize,
Source§fn from(value: ItemEffect) -> Self
fn from(value: ItemEffect) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
impl FromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &ItemEffectwhere
ItemEffect: Serialize,
impl IntoWasmAbi for &ItemEffectwhere
ItemEffect: Serialize,
Source§impl IntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
impl IntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
Source§impl JsonSchema for ItemEffect
impl JsonSchema for ItemEffect
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
impl OptionIntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
Source§impl PartialEq for ItemEffect
impl PartialEq for ItemEffect
Source§impl RefFromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ItemEffectwhere
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<ItemEffect>
type Anchor = SelfOwner<ItemEffect>
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 ItemEffect
impl Serialize for ItemEffect
Source§impl Tsify for ItemEffect
impl Tsify for ItemEffect
const DECL: &'static str = "export interface ItemEffect {\n spell_id: number;\n trigger_type: number;\n charges: number;\n cooldown: number;\n category_cooldown: 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 ItemEffectwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ItemEffectwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
impl VectorIntoWasmAbi for ItemEffectwhere
ItemEffect: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ItemEffect
impl WasmDescribe for ItemEffect
Source§impl WasmDescribeVector for ItemEffect
impl WasmDescribeVector for ItemEffect
impl StructuralPartialEq for ItemEffect
Auto Trait Implementations§
impl Freeze for ItemEffect
impl RefUnwindSafe for ItemEffect
impl Send for ItemEffect
impl Sync for ItemEffect
impl Unpin for ItemEffect
impl UnsafeUnpin for ItemEffect
impl UnwindSafe for ItemEffect
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.