pub struct ExternalRef {
pub scheme: String,
pub id: String,
pub url: Option<String>,
}Expand description
An external reference a finding is consistent with — never a verdict. Most commonly a MITRE ATT&CK technique; also CVEs, vendor docs, case tags.
Fields§
§scheme: StringReference scheme, e.g. mitre-attack, cve.
id: StringIdentifier within the scheme, e.g. T1003, T1055.001.
url: Option<String>Optional canonical URL.
Implementations§
Source§impl ExternalRef
impl ExternalRef
Sourcepub fn mitre_attack(id: impl Into<String>) -> Self
pub fn mitre_attack(id: impl Into<String>) -> Self
A MITRE ATT&CK technique reference (e.g. "T1003").
Trait Implementations§
Source§impl Clone for ExternalRef
impl Clone for ExternalRef
Source§fn clone(&self) -> ExternalRef
fn clone(&self) -> ExternalRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalRef
impl Debug for ExternalRef
impl Eq for ExternalRef
Source§impl Hash for ExternalRef
impl Hash for ExternalRef
Source§impl PartialEq for ExternalRef
impl PartialEq for ExternalRef
impl StructuralPartialEq for ExternalRef
Auto Trait Implementations§
impl Freeze for ExternalRef
impl RefUnwindSafe for ExternalRef
impl Send for ExternalRef
impl Sync for ExternalRef
impl Unpin for ExternalRef
impl UnsafeUnpin for ExternalRef
impl UnwindSafe for ExternalRef
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