pub struct ResolvedStat {
pub stat_type: i32,
pub stat_name: String,
pub value: i32,
}Fields§
§stat_type: i32§stat_name: String§value: i32Final value (alloc * budget * 0.0001), rounded.
Trait Implementations§
Source§impl Clone for ResolvedStat
impl Clone for ResolvedStat
Source§fn clone(&self) -> ResolvedStat
fn clone(&self) -> ResolvedStat
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 ResolvedStat
impl Debug for ResolvedStat
Source§impl Default for ResolvedStat
impl Default for ResolvedStat
Source§fn default() -> ResolvedStat
fn default() -> ResolvedStat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResolvedStat
impl<'de> Deserialize<'de> for ResolvedStat
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<ResolvedStat> for JsValuewhere
ResolvedStat: Serialize,
impl From<ResolvedStat> for JsValuewhere
ResolvedStat: Serialize,
Source§fn from(value: ResolvedStat) -> Self
fn from(value: ResolvedStat) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
impl FromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &ResolvedStatwhere
ResolvedStat: Serialize,
impl IntoWasmAbi for &ResolvedStatwhere
ResolvedStat: Serialize,
Source§impl IntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
impl IntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
Source§impl OptionFromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
impl OptionIntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
Source§impl RefFromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ResolvedStatwhere
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<ResolvedStat>
type Anchor = SelfOwner<ResolvedStat>
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 ResolvedStat
impl Serialize for ResolvedStat
Source§impl Tsify for ResolvedStat
impl Tsify for ResolvedStat
const DECL: &'static str = "export interface ResolvedStat {\n stat_type: number;\n stat_name: string;\n /**\n * Final value (`alloc * budget * 0.0001`), rounded.\n */\n value: 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 ResolvedStatwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ResolvedStatwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
impl VectorIntoWasmAbi for ResolvedStatwhere
ResolvedStat: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ResolvedStat
impl WasmDescribe for ResolvedStat
Source§impl WasmDescribeVector for ResolvedStat
impl WasmDescribeVector for ResolvedStat
Auto Trait Implementations§
impl Freeze for ResolvedStat
impl RefUnwindSafe for ResolvedStat
impl Send for ResolvedStat
impl Sync for ResolvedStat
impl Unpin for ResolvedStat
impl UnsafeUnpin for ResolvedStat
impl UnwindSafe for ResolvedStat
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.