Struct sf_api::gamestate::fortress::FortressCost
source · pub struct FortressCost {
pub time: Duration,
pub wood: u64,
pub stone: u64,
pub silver: u64,
}
Fields§
§time: Duration
§wood: u64
§stone: u64
§silver: u64
Trait Implementations§
source§impl Clone for FortressCost
impl Clone for FortressCost
source§fn clone(&self) -> FortressCost
fn clone(&self) -> FortressCost
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 FortressCost
impl Debug for FortressCost
source§impl Default for FortressCost
impl Default for FortressCost
source§fn default() -> FortressCost
fn default() -> FortressCost
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FortressCost
impl<'de> Deserialize<'de> for FortressCost
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 FortressCost
impl Serialize for FortressCost
impl Copy for FortressCost
Auto Trait Implementations§
impl RefUnwindSafe for FortressCost
impl Send for FortressCost
impl Sync for FortressCost
impl Unpin for FortressCost
impl UnwindSafe for FortressCost
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