Enum ThreatKind
pub enum ThreatKind {
HabitatLoss,
ClimateChange,
Pollution,
InvasiveSpecies,
Overexploitation,
Disease,
Fragmentation,
Unknown,
Custom(String),
}Variants§
HabitatLoss
ClimateChange
Pollution
InvasiveSpecies
Overexploitation
Disease
Fragmentation
Unknown
Custom(String)
Trait Implementations§
§impl Clone for ThreatKind
impl Clone for ThreatKind
§fn clone(&self) -> ThreatKind
fn clone(&self) -> ThreatKind
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 more§impl Debug for ThreatKind
impl Debug for ThreatKind
§impl Display for ThreatKind
impl Display for ThreatKind
§impl FromStr for ThreatKind
impl FromStr for ThreatKind
§type Err = ThreatKindParseError
type Err = ThreatKindParseError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<ThreatKind, <ThreatKind as FromStr>::Err>
fn from_str(value: &str) -> Result<ThreatKind, <ThreatKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for ThreatKind
impl Hash for ThreatKind
§impl Ord for ThreatKind
impl Ord for ThreatKind
§impl PartialEq for ThreatKind
impl PartialEq for ThreatKind
§impl PartialOrd for ThreatKind
impl PartialOrd for ThreatKind
impl Eq for ThreatKind
impl StructuralPartialEq for ThreatKind
Auto Trait Implementations§
impl Freeze for ThreatKind
impl RefUnwindSafe for ThreatKind
impl Send for ThreatKind
impl Sync for ThreatKind
impl Unpin for ThreatKind
impl UnsafeUnpin for ThreatKind
impl UnwindSafe for ThreatKind
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