pub struct AttackStore { /* private fields */ }Implementations§
Source§impl AttackStore
impl AttackStore
pub fn new() -> Self
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_url(url: &str) -> Result<Self>
pub fn get_tactic(&self, id: &str) -> Option<&Tactic>
pub fn get_technique(&self, id: &str) -> Option<&Technique>
pub fn get_group(&self, id: &str) -> Option<&Group>
pub fn get_software(&self, id: &str) -> Option<&Software>
pub fn get_mitigation(&self, id: &str) -> Option<&Mitigation>
pub fn get_data_source(&self, id: &str) -> Option<&DataSource>
pub fn get_data_component(&self, id: &str) -> Option<&DataComponent>
pub fn get_campaign(&self, id: &str) -> Option<&Campaign>
pub fn get_matrix(&self, id: &str) -> Option<&Matrix>
pub fn get_analytic(&self, id: &str) -> Option<&Analytic>
pub fn get_detection_strategy(&self, id: &str) -> Option<&DetectionStrategy>
pub fn get_replacement(&self, id: &str) -> Option<&str>
pub fn get_technique_by_tcode(&self, tcode: &str) -> Option<&Technique>
pub fn get_groups_using_technique(&self, technique_id: &str) -> Vec<&Group>
pub fn get_mitigations_for_technique( &self, technique_id: &str, ) -> Vec<&Mitigation>
pub fn get_datasources_for_technique( &self, technique_id: &str, ) -> Vec<&DataSource>
pub fn get_datacomponents_for_technique( &self, technique_id: &str, ) -> Vec<&DataComponent>
pub fn get_datasource_for_component( &self, component_id: &str, ) -> Option<&DataSource>
pub fn get_components_for_datasource( &self, datasource_id: &str, ) -> Vec<&DataComponent>
pub fn get_parent_technique(&self, subtechnique_id: &str) -> Option<&Technique>
pub fn get_subtechniques(&self, technique_id: &str) -> Vec<&Technique>
pub fn get_groups_for_campaign(&self, campaign_id: &str) -> Vec<&Group>
pub fn get_techniques_for_campaign(&self, campaign_id: &str) -> Vec<&Technique>
pub fn get_software_for_campaign(&self, campaign_id: &str) -> Vec<&Software>
pub fn find_technique_by_name(&self, name: &str) -> Option<&Technique>
pub fn tactics(&self) -> impl Iterator<Item = &Tactic>
pub fn techniques(&self) -> impl Iterator<Item = &Technique>
pub fn groups(&self) -> impl Iterator<Item = &Group>
pub fn software(&self) -> impl Iterator<Item = &Software>
pub fn mitigations(&self) -> impl Iterator<Item = &Mitigation>
pub fn data_sources(&self) -> impl Iterator<Item = &DataSource>
pub fn data_components(&self) -> impl Iterator<Item = &DataComponent>
pub fn campaigns(&self) -> impl Iterator<Item = &Campaign>
pub fn matrices(&self) -> impl Iterator<Item = &Matrix>
pub fn analytics(&self) -> impl Iterator<Item = &Analytic>
pub fn detection_strategies(&self) -> impl Iterator<Item = &DetectionStrategy>
Trait Implementations§
Source§impl Debug for AttackStore
impl Debug for AttackStore
Source§impl Default for AttackStore
impl Default for AttackStore
Source§fn default() -> AttackStore
fn default() -> AttackStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttackStore
impl RefUnwindSafe for AttackStore
impl Send for AttackStore
impl Sync for AttackStore
impl Unpin for AttackStore
impl UnsafeUnpin for AttackStore
impl UnwindSafe for AttackStore
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