pub struct IdleBuilding {
pub level: u32,
pub earning: BigInt,
pub cycle_start: Option<DateTime<Local>>,
pub cycle_end: 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: u32The current level of this building
earning: BigIntThe amount of money this earns on the next gather
cycle_start: Option<DateTime<Local>>The time at which this building started it’s production cycle. Note that this is likely to be in the past for quickly producing buildings
cycle_end: Option<DateTime<Local>>The time at which this building will finish it’s current production cycle. Note that this is likely to be in the past for quickly producing buildings
golden: boolHas the upgrade for this building been bought?
upgrade_cost: BigIntThe price to upgrade this building once
upgrade_cost_10x: BigIntThe price to upgrade this building 10x
upgrade_cost_25x: BigIntThe price to upgrade this building 25x
upgrade_cost_100x: BigIntThe 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 (const: unstable) · 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 UnsafeUnpin 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