pub struct EngineerCraftEvent {
pub slot: ShipSlot,
pub module: ShipModule,
pub ingredients: Vec<EngineerCraftEventIngredient>,
pub engineer: Option<String>,
pub engineer_id: Engineer,
pub blueprint_id: u64,
pub blueprint_name: Blueprint,
pub level: u8,
pub quality: f32,
pub modifiers: Vec<EngineerCraftEventModifier>,
}
Expand description
Fired when the player applies an engineering modification to one of their ship’s modules.
Fields§
§slot: ShipSlot
The slot of the module being modified.
module: ShipModule
The type of module being modified.
ingredients: Vec<EngineerCraftEventIngredient>
List of paid materials for the modification. Note that these are the materials for one increase in quality and not for fully upgrading the whole level.
engineer: Option<String>
The name of engineer that applied the modification. In some cases where the engineer is Engineer::System this is not set.
engineer_id: Engineer
The engineer where the player applied the modifications.
blueprint_id: u64
The id of the modification the player applied.
blueprint_name: Blueprint
The name of the modification the player applied.
level: u8
The level or ‘grade’ of the applied modification.
quality: f32
The quality or ‘progress’ of the applied modification.
modifiers: Vec<EngineerCraftEventModifier>
The modifiers that are affected by the modification.
Trait Implementations§
Source§impl Clone for EngineerCraftEvent
impl Clone for EngineerCraftEvent
Source§fn clone(&self) -> EngineerCraftEvent
fn clone(&self) -> EngineerCraftEvent
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 EngineerCraftEvent
impl Debug for EngineerCraftEvent
Source§impl<'de> Deserialize<'de> for EngineerCraftEvent
impl<'de> Deserialize<'de> for EngineerCraftEvent
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 EngineerCraftEvent
impl PartialEq for EngineerCraftEvent
Source§impl Serialize for EngineerCraftEvent
impl Serialize for EngineerCraftEvent
impl StructuralPartialEq for EngineerCraftEvent
Auto Trait Implementations§
impl Freeze for EngineerCraftEvent
impl RefUnwindSafe for EngineerCraftEvent
impl Send for EngineerCraftEvent
impl Sync for EngineerCraftEvent
impl Unpin for EngineerCraftEvent
impl UnwindSafe for EngineerCraftEvent
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