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