pub struct IdleBuilding {
pub level: u32,
pub earning: BigInt,
pub next_gather: Option<DateTime<Local>>,
pub next_next_gather: Option<DateTime<Local>>,
pub golden: bool,
pub upgrade_cost: BigInt,
pub upgrade_cost_10x: BigInt,
pub upgrade_cost_25x: BigInt,
pub upgrade_cost_100x: BigInt,
}
Expand description
A single building in the idle game
Fields§
§level: u32
The current level of this building
earning: BigInt
The amount of money this earns on the next gather
next_gather: Option<DateTime<Local>>
The time at which this building will gather resources
next_next_gather: Option<DateTime<Local>>
The next time at which this building will gather resources
golden: bool
Has the upgrade for this building been bought?
upgrade_cost: BigInt
The price to upgrade this building once
upgrade_cost_10x: BigInt
The price to upgrade this building 10x
upgrade_cost_25x: BigInt
The price to upgrade this building 25x
upgrade_cost_100x: BigInt
The price to upgrade this building 100x
Trait Implementations§
Source§impl Clone for IdleBuilding
impl Clone for IdleBuilding
Source§fn clone(&self) -> IdleBuilding
fn clone(&self) -> IdleBuilding
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 IdleBuilding
impl Debug for IdleBuilding
Source§impl Default for IdleBuilding
impl Default for IdleBuilding
Source§fn default() -> IdleBuilding
fn default() -> IdleBuilding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IdleBuilding
impl<'de> Deserialize<'de> for IdleBuilding
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 IdleBuilding
impl RefUnwindSafe for IdleBuilding
impl Send for IdleBuilding
impl Sync for IdleBuilding
impl Unpin for IdleBuilding
impl UnwindSafe for IdleBuilding
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