pub struct ItemDropSource {
pub instance_id: i32,
pub instance_name: CompactString,
pub encounter_id: i32,
pub encounter_name: CompactString,
pub difficulty_ids: Vec<i32>,
}Fields§
§instance_id: i32§instance_name: CompactString§encounter_id: i32§encounter_name: CompactString§difficulty_ids: Vec<i32>Decoded Difficulty.IDs from DifficultyMask (bit N = ID N+1); empty Vec means all difficulties (mask -1 or 0).
Trait Implementations§
Source§impl Clone for ItemDropSource
impl Clone for ItemDropSource
Source§fn clone(&self) -> ItemDropSource
fn clone(&self) -> ItemDropSource
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 ItemDropSource
impl Debug for ItemDropSource
Source§impl<'de> Deserialize<'de> for ItemDropSource
impl<'de> Deserialize<'de> for ItemDropSource
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<ItemDropSource> for JsValuewhere
ItemDropSource: Serialize,
impl From<ItemDropSource> for JsValuewhere
ItemDropSource: Serialize,
Source§fn from(value: ItemDropSource) -> Self
fn from(value: ItemDropSource) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ItemDropSourcewhere
Self: DeserializeOwned,
impl FromWasmAbi for ItemDropSourcewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &ItemDropSourcewhere
ItemDropSource: Serialize,
impl IntoWasmAbi for &ItemDropSourcewhere
ItemDropSource: Serialize,
Source§impl IntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
impl IntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
Source§impl JsonSchema for ItemDropSource
impl JsonSchema for ItemDropSource
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 ItemDropSourcewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ItemDropSourcewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
impl OptionIntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
Source§impl PartialEq for ItemDropSource
impl PartialEq for ItemDropSource
Source§impl RefFromWasmAbi for ItemDropSourcewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ItemDropSourcewhere
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<ItemDropSource>
type Anchor = SelfOwner<ItemDropSource>
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 ItemDropSource
impl Serialize for ItemDropSource
Source§impl Tsify for ItemDropSource
impl Tsify for ItemDropSource
const DECL: &'static str = "export interface ItemDropSource {\n instance_id: number;\n instance_name: string;\n encounter_id: number;\n encounter_name: string;\n /**\n * Decoded `Difficulty.ID`s from `DifficultyMask` (bit N = ID N+1); empty Vec means all difficulties (mask -1 or 0).\n */\n difficulty_ids: 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 ItemDropSourcewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ItemDropSourcewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
impl VectorIntoWasmAbi for ItemDropSourcewhere
ItemDropSource: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ItemDropSource
impl WasmDescribe for ItemDropSource
impl StructuralPartialEq for ItemDropSource
Auto Trait Implementations§
impl Freeze for ItemDropSource
impl RefUnwindSafe for ItemDropSource
impl Send for ItemDropSource
impl Sync for ItemDropSource
impl Unpin for ItemDropSource
impl UnsafeUnpin for ItemDropSource
impl UnwindSafe for ItemDropSource
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.