#[non_exhaustive]pub struct RawDiscoveryRecord {
pub dd: DiscoveryData,
pub dm: Value,
pub ows: OwnershipData,
pub fl: DiscoveryFlags,
pub rid: Option<String>,
}Expand description
A raw discovery record from the save file.
Field names (DD, DM, OWS, FL, RID) are the actual JSON keys — not obfuscated.
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.dd: DiscoveryDataDiscovery data.
dm: ValueDiscovery metadata (usually empty object).
ows: OwnershipDataOwnership data.
fl: DiscoveryFlagsFlags (C=created, U=uploaded).
rid: Option<String>Record ID (base64 hash).
Implementations§
Source§impl RawDiscoveryRecord
impl RawDiscoveryRecord
Sourcepub fn to_core_record(&self) -> Option<DiscoveryRecord>
pub fn to_core_record(&self) -> Option<DiscoveryRecord>
Convert to an nms_core::DiscoveryRecord, or None if the discovery
type is unrecognized.
Trait Implementations§
Source§impl Clone for RawDiscoveryRecord
impl Clone for RawDiscoveryRecord
Source§fn clone(&self) -> RawDiscoveryRecord
fn clone(&self) -> RawDiscoveryRecord
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 RawDiscoveryRecord
impl Debug for RawDiscoveryRecord
Source§impl<'de> Deserialize<'de> for RawDiscoveryRecord
impl<'de> Deserialize<'de> for RawDiscoveryRecord
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
Auto Trait Implementations§
impl Freeze for RawDiscoveryRecord
impl RefUnwindSafe for RawDiscoveryRecord
impl Send for RawDiscoveryRecord
impl Sync for RawDiscoveryRecord
impl Unpin for RawDiscoveryRecord
impl UnsafeUnpin for RawDiscoveryRecord
impl UnwindSafe for RawDiscoveryRecord
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