pub struct StatDefinition {
pub id: String,
pub name: String,
pub default_value: f32,
pub min_value: f32,
pub max_value: f32,
pub category: String,
pub show_in_ui: bool,
}Expand description
A custom stat declaration.
Fields§
§id: String§name: String§default_value: f32§min_value: f32§max_value: f32§category: String§show_in_ui: boolTrait Implementations§
Source§impl Clone for StatDefinition
impl Clone for StatDefinition
Source§fn clone(&self) -> StatDefinition
fn clone(&self) -> StatDefinition
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 StatDefinition
impl Debug for StatDefinition
Source§impl<'de> Deserialize<'de> for StatDefinition
impl<'de> Deserialize<'de> for StatDefinition
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
Auto Trait Implementations§
impl Freeze for StatDefinition
impl RefUnwindSafe for StatDefinition
impl Send for StatDefinition
impl Sync for StatDefinition
impl Unpin for StatDefinition
impl UnsafeUnpin for StatDefinition
impl UnwindSafe for StatDefinition
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