pub struct OnAiCommandCompletedEvent {
pub name: &'static str,
pub result: &'static str,
pub tick: u32,
pub unit_number: u32,
pub was_distracted: bool,
}Expand description
Called when a unit/group completes a command.
Fields§
§name: &'static str§result: &'static str§tick: u32§unit_number: u32§was_distracted: boolTrait Implementations§
Source§impl Clone for OnAiCommandCompletedEvent
impl Clone for OnAiCommandCompletedEvent
Source§fn clone(&self) -> OnAiCommandCompletedEvent
fn clone(&self) -> OnAiCommandCompletedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnAiCommandCompletedEvent
Source§impl Debug for OnAiCommandCompletedEvent
impl Debug for OnAiCommandCompletedEvent
Source§impl Default for OnAiCommandCompletedEvent
impl Default for OnAiCommandCompletedEvent
Source§fn default() -> OnAiCommandCompletedEvent
fn default() -> OnAiCommandCompletedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnAiCommandCompletedEvent
Auto Trait Implementations§
impl Freeze for OnAiCommandCompletedEvent
impl RefUnwindSafe for OnAiCommandCompletedEvent
impl Send for OnAiCommandCompletedEvent
impl Sync for OnAiCommandCompletedEvent
impl Unpin for OnAiCommandCompletedEvent
impl UnsafeUnpin for OnAiCommandCompletedEvent
impl UnwindSafe for OnAiCommandCompletedEvent
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