pub struct ResourceSection {
pub name: String,
pub max: Option<f64>,
pub regen: Option<f64>,
pub starts_at: Option<f64>,
pub type_id: u8,
}Expand description
[resource] block describing the spec’s primary resource; max/regen/starts_at derive from game.power_types when omitted.
Fields§
§name: String§max: Option<f64>§regen: Option<f64>§starts_at: Option<f64>§type_id: u8Trait Implementations§
Source§impl Debug for ResourceSection
impl Debug for ResourceSection
Source§impl<'de> Deserialize<'de> for ResourceSection
impl<'de> Deserialize<'de> for ResourceSection
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 ResourceSection
impl RefUnwindSafe for ResourceSection
impl Send for ResourceSection
impl Sync for ResourceSection
impl Unpin for ResourceSection
impl UnsafeUnpin for ResourceSection
impl UnwindSafe for ResourceSection
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