pub fn detect(string: &str) -> Self {
        if string.starts_with("RUSTSEC-") {
            Kind::RustSec
        } else if string.starts_with("CVE-") {
            Kind::Cve
        } else if string.starts_with("TALOS-") {
            Kind::Talos
        } else if string.starts_with("GHSA-") {
            Kind::Ghsa
        } else {
            Kind::Other
        }
    }
/// Detect the identifier kind for the given string
Detect the identifier kind for the given string
Detect the identifier kind for the given string
pub fn detect(string: &str) -> Self {
        if string.starts_with("RUSTSEC-") {
            Kind::RustSec
        } else if string.starts_with("CVE-") {
            Kind::Cve
        } else if string.starts_with("TALOS-") {
            Kind::Talos
        } else if string.starts_with("GHSA-") {
            Kind::Ghsa
        } else {
            Kind::Other
        }
    }
pub fn detect ( string : & str ) -> Self { if string . starts_with ( " " ) { Kind :: RustSec } else if string . starts_with ( " " ) { Kind :: Cve } else if string . starts_with ( " " ) { Kind :: Talos } else if string . starts_with ( " " ) { Kind :: Ghsa } else { Kind :: Other } }
Detect the identifier kind for the given string
Detect the identifier kind for the given string
string
&str
string
&str