pub struct ProspectedAsteroidEvent {
pub materials: Vec<ProspectedAsteroidEventMaterial>,
pub content: ProspectedAsteroidEventContent,
pub content_localized: Option<String>,
pub motherlode_material: Option<Commodity>,
pub motherlode_material_localized: Option<String>,
pub remaining: f32,
}
Expand description
Fired when a prospector limpet is used on an asteroid.
Fields§
§materials: Vec<ProspectedAsteroidEventMaterial>
List of commodities that are available in the given asteroid.
content: ProspectedAsteroidEventContent
The yield of the asteroid. How much of the materials are available.
content_localized: Option<String>
Localized name of the yield of the asteroid.
motherlode_material: Option<Commodity>
Whether the prospected asteroid contains a mother lode.
motherlode_material_localized: Option<String>
Localized name of the mother lode commodity, if any.
remaining: f32
Percentage of total yield remaining for the asteroid.
Trait Implementations§
Source§impl Clone for ProspectedAsteroidEvent
impl Clone for ProspectedAsteroidEvent
Source§fn clone(&self) -> ProspectedAsteroidEvent
fn clone(&self) -> ProspectedAsteroidEvent
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 ProspectedAsteroidEvent
impl Debug for ProspectedAsteroidEvent
Source§impl<'de> Deserialize<'de> for ProspectedAsteroidEvent
impl<'de> Deserialize<'de> for ProspectedAsteroidEvent
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 ProspectedAsteroidEvent
impl PartialEq for ProspectedAsteroidEvent
Source§impl Serialize for ProspectedAsteroidEvent
impl Serialize for ProspectedAsteroidEvent
impl StructuralPartialEq for ProspectedAsteroidEvent
Auto Trait Implementations§
impl Freeze for ProspectedAsteroidEvent
impl RefUnwindSafe for ProspectedAsteroidEvent
impl Send for ProspectedAsteroidEvent
impl Sync for ProspectedAsteroidEvent
impl Unpin for ProspectedAsteroidEvent
impl UnwindSafe for ProspectedAsteroidEvent
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