pub struct UnderworldBuilding {
pub level: u8,
pub upgrade_cost: UnderworldCost,
}Expand description
Information about the current building state of a building
Fields§
§level: u8The current level of this building. If this is 0, it has not yet been built
upgrade_cost: UnderworldCostThe amount of resources it costs to upgrade to the next level
Trait Implementations§
Source§impl Clone for UnderworldBuilding
impl Clone for UnderworldBuilding
Source§fn clone(&self) -> UnderworldBuilding
fn clone(&self) -> UnderworldBuilding
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 UnderworldBuilding
impl Debug for UnderworldBuilding
Source§impl Default for UnderworldBuilding
impl Default for UnderworldBuilding
Source§fn default() -> UnderworldBuilding
fn default() -> UnderworldBuilding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnderworldBuilding
impl<'de> Deserialize<'de> for UnderworldBuilding
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 Serialize for UnderworldBuilding
impl Serialize for UnderworldBuilding
impl Copy for UnderworldBuilding
Auto Trait Implementations§
impl Freeze for UnderworldBuilding
impl RefUnwindSafe for UnderworldBuilding
impl Send for UnderworldBuilding
impl Sync for UnderworldBuilding
impl Unpin for UnderworldBuilding
impl UnwindSafe for UnderworldBuilding
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