Struct screeps::objects::event::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 for HarvestEvent
impl PartialEq 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 ==
.impl Eq for HarvestEvent
impl StructuralEq for HarvestEvent
impl StructuralPartialEq for HarvestEvent
Auto Trait Implementations§
impl RefUnwindSafe for HarvestEvent
impl Send for HarvestEvent
impl Sync for HarvestEvent
impl Unpin for HarvestEvent
impl UnwindSafe for HarvestEvent
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