Resolve

Trait Resolve 

Source
pub trait Resolve {
    type Output;

    // Required method
    fn resolve(self) -> Option<Self::Output>;
}
Expand description

Trait for turning a reference in a STIX collection into a data-carrying node.

Required Associated Types§

Source

type Output

The node type, containing a reference to the data and the backing collection.

Required Methods§

Source

fn resolve(self) -> Option<Self::Output>

Produce a collection-attached node for the object identified by the ID.

Implementors§

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Location>

Source§

type Output = Node<'collection, Location>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Relationship>

Source§

type Output = Node<'collection, Relationship>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, AttackPattern>

Source§

type Output = Node<'collection, AttackPattern>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Campaign>

Source§

type Output = Node<'collection, Campaign>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, CourseOfAction>

Source§

type Output = Node<'collection, CourseOfAction>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Identity>

Source§

type Output = Node<'collection, Identity>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Infrastructure>

Source§

type Output = Node<'collection, Infrastructure>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, IntrusionSet>

Source§

type Output = Node<'collection, IntrusionSet>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Malware>

Source§

type Output = Node<'collection, Malware>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, MarkingDefinition>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, ThreatActor>

Source§

type Output = Node<'collection, ThreatActor>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Tool>

Source§

type Output = Node<'collection, Tool>

Source§

impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Vulnerability>

Source§

type Output = Node<'collection, Vulnerability>