Struct screeps::objects::HarvestEvent
source · pub struct HarvestEvent {
pub target_id: String,
pub amount: u32,
}
Fields§
§target_id: String
§amount: u32
Trait Implementations§
source§impl Clone for HarvestEvent
impl Clone for HarvestEvent
source§fn clone(&self) -> HarvestEvent
fn clone(&self) -> HarvestEvent
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 HarvestEvent
impl Debug for HarvestEvent
source§impl<'de> Deserialize<'de> for HarvestEvent
impl<'de> Deserialize<'de> for HarvestEvent
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 PartialEq<HarvestEvent> for HarvestEvent
impl PartialEq<HarvestEvent> for HarvestEvent
source§fn eq(&self, other: &HarvestEvent) -> bool
fn eq(&self, other: &HarvestEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.