Struct attck::Ref [−][src]
An ID for a resource that may be in the backing collection.
Ref is used to allow exploration of STIX collections when not every object referenced is
present in-memory.
Implementations
impl<'id, 'collection: 'id, D> Ref<'id, 'collection, D>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Declaration>[src]
The ID of a STIX object of some type which may be present in the collection.
pub fn downcast<D: TypedObject>(self) -> Option<Ref<'id, 'collection, D>>[src]
Narrow the type of the reference so that it can be resolved to a Node.
This requires knowing the concrete type of the data associated with the ID.
impl<'id, 'collection: 'id> Ref<'id, 'collection, AttackPattern>[src]
pub fn resolve(self) -> Option<Node<'collection, AttackPattern>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Campaign>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, CourseOfAction>[src]
pub fn resolve(self) -> Option<Node<'collection, CourseOfAction>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Identity>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, IntrusionSet>[src]
pub fn resolve(self) -> Option<Node<'collection, IntrusionSet>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Infrastructure>[src]
pub fn resolve(self) -> Option<Node<'collection, Infrastructure>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Location>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Malware>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, MarkingDefinition>[src]
pub fn resolve(self) -> Option<Node<'collection, MarkingDefinition>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Matrix>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Tactic>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Relationship>[src]
pub fn resolve(self) -> Option<Node<'collection, Relationship>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, ThreatActor>[src]
pub fn resolve(self) -> Option<Node<'collection, ThreatActor>>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Tool>[src]
impl<'id, 'collection: 'id> Ref<'id, 'collection, Vulnerability>[src]
pub fn resolve(self) -> Option<Node<'collection, Vulnerability>>[src]
Trait Implementations
impl<'id, 'collection: 'id, D: Clone> Clone for Ref<'id, 'collection, D>[src]
fn clone(&self) -> Ref<'id, 'collection, D>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, AttackPattern>[src]
type Output = Node<'collection, AttackPattern>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Campaign>[src]
type Output = Node<'collection, Campaign>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Tactic>[src]
type Output = Node<'collection, Tactic>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Relationship>[src]
type Output = Node<'collection, Relationship>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, ThreatActor>[src]
type Output = Node<'collection, ThreatActor>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Tool>[src]
type Output = Node<'collection, Tool>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Vulnerability>[src]
type Output = Node<'collection, Vulnerability>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, CourseOfAction>[src]
type Output = Node<'collection, CourseOfAction>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Identity>[src]
type Output = Node<'collection, Identity>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, IntrusionSet>[src]
type Output = Node<'collection, IntrusionSet>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Infrastructure>[src]
type Output = Node<'collection, Infrastructure>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Location>[src]
type Output = Node<'collection, Location>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Malware>[src]
type Output = Node<'collection, Malware>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, MarkingDefinition>[src]
type Output = Node<'collection, MarkingDefinition>
The node type, containing a reference to the data and the backing collection.
fn resolve(self) -> Option<Self::Output>[src]
impl<'id, 'collection: 'id> Resolve for Ref<'id, 'collection, Matrix>[src]
Auto Trait Implementations
impl<'id, 'collection, D> RefUnwindSafe for Ref<'id, 'collection, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<'id, 'collection, D> Send for Ref<'id, 'collection, D> where
D: Send,
D: Send,
impl<'id, 'collection, D> Sync for Ref<'id, 'collection, D> where
D: Sync,
D: Sync,
impl<'id, 'collection, D> Unpin for Ref<'id, 'collection, D> where
D: Unpin,
D: Unpin,
impl<'id, 'collection, D> UnwindSafe for Ref<'id, 'collection, D> where
D: UnwindSafe,
D: UnwindSafe,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,