pub enum CodexEntry {
Planet(CodexPlanetEntry),
Geological(CodexGeologicalEntry),
Anomalous(CodexAnomalyEntry),
Thargoid(CodexThargoidEntry),
Guardian(CodexGuardianEntry),
Genus(Genus),
Species(Species),
Variant(Variant),
OrganicStructure(CodexOrganicStructureEntry),
StarClass(CodexStarClassEntry),
Unknown(String),
}
Expand description
Model for any kind of codex entry.
Variants§
Planet(CodexPlanetEntry)
Geological(CodexGeologicalEntry)
Anomalous(CodexAnomalyEntry)
Thargoid(CodexThargoidEntry)
Guardian(CodexGuardianEntry)
Genus(Genus)
Species(Species)
Variant(Variant)
OrganicStructure(CodexOrganicStructureEntry)
StarClass(CodexStarClassEntry)
Unknown(String)
Available on crate feature
allow-unknown
only.Unknown codex entry.
Implementations§
Source§impl CodexEntry
impl CodexEntry
Sourcepub fn is_unknown(&self) -> bool
Available on crate feature allow-unknown
only.
pub fn is_unknown(&self) -> bool
allow-unknown
only.Whether the current variant is unknown.
Trait Implementations§
Source§impl Clone for CodexEntry
impl Clone for CodexEntry
Source§fn clone(&self) -> CodexEntry
fn clone(&self) -> CodexEntry
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 CodexEntry
impl Debug for CodexEntry
Source§impl<'de> Deserialize<'de> for CodexEntry
impl<'de> Deserialize<'de> for CodexEntry
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 Display for CodexEntry
impl Display for CodexEntry
Source§impl FromStr for CodexEntry
impl FromStr for CodexEntry
Source§impl Hash for CodexEntry
impl Hash for CodexEntry
Source§impl PartialEq for CodexEntry
impl PartialEq for CodexEntry
Source§impl Serialize for CodexEntry
impl Serialize for CodexEntry
impl Eq for CodexEntry
impl StructuralPartialEq for CodexEntry
Auto Trait Implementations§
impl Freeze for CodexEntry
impl RefUnwindSafe for CodexEntry
impl Send for CodexEntry
impl Sync for CodexEntry
impl Unpin for CodexEntry
impl UnwindSafe for CodexEntry
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