pub struct UnderworldCost {
pub time: Duration,
pub silver: u64,
pub souls: u64,
}Expand description
The price an upgrade, or building something in the underworld costs. These are always for one upgrade/build, which is important for unit builds
Fields§
§time: DurationThe time it takes to complete one build/upgrade
silver: u64The price in silver this costs
souls: u64The price in sould this costs
Trait Implementations§
Source§impl Clone for UnderworldCost
impl Clone for UnderworldCost
Source§fn clone(&self) -> UnderworldCost
fn clone(&self) -> UnderworldCost
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 UnderworldCost
impl Debug for UnderworldCost
Source§impl Default for UnderworldCost
impl Default for UnderworldCost
Source§fn default() -> UnderworldCost
fn default() -> UnderworldCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnderworldCost
impl<'de> Deserialize<'de> for UnderworldCost
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 UnderworldCost
impl Serialize for UnderworldCost
impl Copy for UnderworldCost
Auto Trait Implementations§
impl Freeze for UnderworldCost
impl RefUnwindSafe for UnderworldCost
impl Send for UnderworldCost
impl Sync for UnderworldCost
impl Unpin for UnderworldCost
impl UnwindSafe for UnderworldCost
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