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