Struct sf_api::gamestate::idle::IdleBuilding
source · 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,
}
Fields§
§level: u32
§earning: BigInt
§next_gather: Option<DateTime<Local>>
§next_next_gather: Option<DateTime<Local>>
§golden: bool
Has the upgrade for this building been bought?
upgrade_cost: BigInt
§upgrade_cost_10x: BigInt
§upgrade_cost_25x: BigInt
§upgrade_cost_100x: BigInt
Trait Implementations§
source§impl Clone for IdleBuilding
impl Clone for IdleBuilding
source§fn clone(&self) -> IdleBuilding
fn clone(&self) -> IdleBuilding
Returns a copy 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 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