#[non_exhaustive]pub struct DiscoveryRecord {
pub discovery_type: Discovery,
pub universe_address: GalacticAddress,
pub timestamp: Option<DateTime<Utc>>,
pub name: Option<String>,
pub discoverer: Option<String>,
pub is_uploaded: bool,
}Expand description
A single discovery event from the player’s save file.
The reality_index is derived from the universe_address and kept in sync
by the constructor. Both refer to the galaxy where the discovery was made.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.discovery_type: Discovery§universe_address: GalacticAddress§timestamp: Option<DateTime<Utc>>§name: Option<String>§discoverer: Option<String>§is_uploaded: boolImplementations§
Trait Implementations§
Source§impl Clone for DiscoveryRecord
impl Clone for DiscoveryRecord
Source§fn clone(&self) -> DiscoveryRecord
fn clone(&self) -> DiscoveryRecord
Returns a duplicate 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 DiscoveryRecord
impl Debug for DiscoveryRecord
Source§impl<'de> Deserialize<'de> for DiscoveryRecord
impl<'de> Deserialize<'de> for DiscoveryRecord
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 DiscoveryRecord
impl PartialEq for DiscoveryRecord
Source§impl Serialize for DiscoveryRecord
impl Serialize for DiscoveryRecord
impl Eq for DiscoveryRecord
impl StructuralPartialEq for DiscoveryRecord
Auto Trait Implementations§
impl Freeze for DiscoveryRecord
impl RefUnwindSafe for DiscoveryRecord
impl Send for DiscoveryRecord
impl Sync for DiscoveryRecord
impl Unpin for DiscoveryRecord
impl UnsafeUnpin for DiscoveryRecord
impl UnwindSafe for DiscoveryRecord
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