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