domain-core 0.4.0

A DNS library for Rust – Core.
Documentation
//! NSEC3 Hash Algorithms


//------------ Nsec3HashAlg --------------------------------------------------

int_enum!{
    /// NSEC3 Hash Algorithm Numbers
    ///
    /// For the currently registered values see the [IANA registration]. This
    /// type is complete as of 2008-03-05.
    ///
    /// [IANA registration]: https://www.iana.org/assignments/dnssec-nsec3-parameters/dnssec-nsec3-parameters.xhtml#dnssec-nsec3-parameters-3
    =>
    Nsec3HashAlg, u8;

    (Sha1 => 1, b"SHA-1")
}

int_enum_str_decimal!(Nsec3HashAlg, u8);