use-conservation-status 0.1.0

Primitive conservation status vocabulary for RustUse
Documentation
  • Coverage
  • 8.57%
    3 out of 35 items documented1 out of 12 items with examples
  • Size
  • Source code size: 11.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 828.34 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ecology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-conservation-status

Primitive conservation status vocabulary.

use-conservation-status models descriptive conservation status labels, threat kinds, named status systems, and protection-status labels. It does not fetch conservation data, validate against external lists, provide legal advice, or implement conservation planning.

Example

use use_conservation_status::{
    ConservationStatus, ConservationStatusSystem, ProtectionStatus, ThreatKind,
};

let system = ConservationStatusSystem::new("IUCN").unwrap();
let protection = ProtectionStatus::new("protected-area").unwrap();

assert_eq!(ConservationStatus::Vulnerable.to_string(), "vulnerable");
assert_eq!(ThreatKind::HabitatLoss.to_string(), "habitat-loss");
assert_eq!(system.to_string(), "IUCN");
assert_eq!(protection.to_string(), "protected-area");

Scope

  • descriptive conservation status labels
  • descriptive threat kind labels
  • named conservation status systems and protection labels

Non-goals

  • conservation data fetching
  • validation against external lists
  • legal advice
  • conservation planning

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0