pub struct FortressResource {
pub current: u64,
pub limit: u64,
pub production: FortressProduction,
}
Expand description
Information about one of the three resources, that the fortress can produce.
Fields§
§current: u64
The amount of this resource you have available to spend on upgrades and recruitment
limit: u64
The maximum amount of this resource, that you can store. If current == limit
, you will not be able to collect resources from buildings
production: FortressProduction
Information about the production building, that produces this resource.
Trait Implementations§
Source§impl Clone for FortressResource
impl Clone for FortressResource
Source§fn clone(&self) -> FortressResource
fn clone(&self) -> FortressResource
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 FortressResource
impl Debug for FortressResource
Source§impl Default for FortressResource
impl Default for FortressResource
Source§fn default() -> FortressResource
fn default() -> FortressResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FortressResource
impl<'de> Deserialize<'de> for FortressResource
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 FortressResource
impl RefUnwindSafe for FortressResource
impl Send for FortressResource
impl Sync for FortressResource
impl Unpin for FortressResource
impl UnwindSafe for FortressResource
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