pub enum Indicator {
Show 16 variants
Url(String),
Domain(String),
File(String),
Email(String),
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
Sha512(String),
Sha256(String),
Sha1(String),
Md5(String),
BitcoinP2pkhAddress(String),
BitcoinP2shAddress(String),
BitcoinP2wpkhAddress(String),
BitcoinP2wshAddress(String),
LitecoinP2pkhAddress(String),
LitecoinP2wpkhAddress(String),
}
Expand description
Data representing a single indicator with a kind and a value.
If the value contained defanged data, the fangs will be removed. Meaning that https[:]//github(.)com
will be represented as Url("https://github.com")
.
Variants§
Url(String)
An URL starting with http
or https
Domain(String)
A domain name with a valid TLD (e.g., github.com
) with validation using tldextract
File(String)
A filename with very basic validation (e.g. if it has a .
), but no extension validation. It’s not guaranteed to be a valid filename and is mostly a catch-all if it wasn’t able to match any other indicator.
Email(String)
An email address, e.g. benoit@jeaurond.dev
Ipv4(Ipv4Addr)
An IPv4 address, e.g. 127.0.0.1
Ipv6(Ipv6Addr)
An IPv6 address, e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Sha512(String)
A case-insentive SHA512 hash, e.g. f1d9d8f153ec808a44cd63fb85f7cb811845b1596e46e78febd8c8b505a9b7d3a242c98b2b51261e5402f37334beefd7ba4066873a6dc56cd030cf29f4aef6dc
Sha256(String)
A case-insentive SHA256 hash, e.g. e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Sha1(String)
A case-insentive SHA1 hash, e.g. da39a3ee5e6b4b0d3255bfef95601890afd80709
Md5(String)
A case-insentive MD5 hash, e.g. d41d8cd98f00b204e9800998ecf8427e
BitcoinP2pkhAddress(String)
A Bitcoin P2PKH address, e.g. 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
BitcoinP2shAddress(String)
A Bitcoin P2SH address, e.g. 32jmM9eev8E7CGCAWLSHQnqgHBifcHzgQf
BitcoinP2wpkhAddress(String)
A Bitcoin P2WPKH address, e.g. bc1p4w46h2at4w46h2at4w46h2at4w46h2at5kreae
BitcoinP2wshAddress(String)
A Bitcoin P2WSH address, e.g. bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3
LitecoinP2pkhAddress(String)
LitecoinP2wpkhAddress(String)
A Litecoin P2WPKH address, e.g. ltc1q8c6fshw2dlwun7ekn9qwf37cu2rn755u9ym7p0
Trait Implementations§
Source§impl Ord for Indicator
impl Ord for Indicator
Source§impl PartialOrd for Indicator
impl PartialOrd for Indicator
impl Eq for Indicator
impl StructuralPartialEq for Indicator
Auto Trait Implementations§
impl Freeze for Indicator
impl RefUnwindSafe for Indicator
impl Send for Indicator
impl Sync for Indicator
impl Unpin for Indicator
impl UnwindSafe for Indicator
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.