Struct attck::Collection [−][src]
An immutable collection of STIX objects.
A collection has no special meaning beyond being a set of STIX objects all loaded in memory at once.
Usage
Create a Collection by deserializing JSON into Bundle instances
and then adding those to a CollectionBuilder. Once all bundles are loaded, call
CollectionBuilder::build to finish the collection, which will index the objects
and prepare the collection for querying.
Implementations
impl Collection[src]
pub fn builder() -> CollectionBuilder[src]
Create a new CollectionBuilder.
pub fn get<'id, 'a: 'id, D>(&'a self, id: &'id Id) -> Option<Node<'a, D>> where
Ref<'id, 'a, D>: Resolve<Output = Node<'a, D>>, [src]
Ref<'id, 'a, D>: Resolve<Output = Node<'a, D>>,
Get the object identified by id if it is present in the collection. This function returns a
Node which provides access to the object’s data and its relationships within the collection.
impl Collection[src]
Accessors for STIX objects in the collection.
pub fn attack_patterns<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, AttackPattern>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, AttackPattern>>
pub fn campaigns<'a>(&'a self) -> impl Iterator<Item = Node<'a, Campaign>>[src]
pub fn courses_of_action<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, CourseOfAction>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, CourseOfAction>>
pub fn identities<'a>(&'a self) -> impl Iterator<Item = Node<'a, Identity>>[src]
pub fn intrusion_sets<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, IntrusionSet>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, IntrusionSet>>
pub fn infrastructure<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, Infrastructure>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, Infrastructure>>
pub fn locations<'a>(&'a self) -> impl Iterator<Item = Node<'a, Location>>[src]
pub fn malware<'a>(&'a self) -> impl Iterator<Item = Node<'a, Malware>>[src]
pub fn marking_definitions<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, MarkingDefinition>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, MarkingDefinition>>
pub fn matrices<'a>(&'a self) -> impl Iterator<Item = Node<'a, Matrix>>[src]
pub fn tactics<'a>(&'a self) -> impl Iterator<Item = Node<'a, Tactic>>[src]
pub fn relationships<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, Relationship>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, Relationship>>
pub fn threat_actors<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, ThreatActor>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, ThreatActor>>
pub fn tools<'a>(&'a self) -> impl Iterator<Item = Node<'a, Tool>>[src]
pub fn vulnerabilities<'a>(
&'a self
) -> impl Iterator<Item = Node<'a, Vulnerability>>[src]
&'a self
) -> impl Iterator<Item = Node<'a, Vulnerability>>
Trait Implementations
impl From<Bundle<Declaration>> for Collection[src]
fn from(bundle: Bundle<Declaration>) -> Self[src]
Auto Trait Implementations
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,