TypedObject

Trait TypedObject 

Source
pub trait TypedObject {
    const TYPE: &'static str;
}
Expand description

A STIX object associated with a specific ID type.

All instances of the struct should have this as their ID.

Required Associated Constants§

Source

const TYPE: &'static str

The kebab-case type used as the object’s ID prefix and in the type field for declarations of the object.

§Examples
  • course-of-action
  • intrusion-set

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TypedObject for Location

Source§

const TYPE: &'static str = "location"

Source§

impl TypedObject for Relationship

Source§

const TYPE: &'static str = "relationship"

Source§

impl TypedObject for AttackPattern

Source§

const TYPE: &'static str = "attack-pattern"

Source§

impl TypedObject for Campaign

Source§

const TYPE: &'static str = "campaign"

Source§

impl TypedObject for CourseOfAction

Source§

const TYPE: &'static str = "course-of-action"

Source§

impl TypedObject for Identity

Source§

const TYPE: &'static str = "identity"

Source§

impl TypedObject for Infrastructure

Source§

const TYPE: &'static str = "infrastructure"

Source§

impl TypedObject for IntrusionSet

Source§

const TYPE: &'static str = "intrusion-set"

Source§

impl TypedObject for Malware

Source§

const TYPE: &'static str = "malware"

Source§

impl TypedObject for MarkingDefinition

Source§

const TYPE: &'static str = "marking-definition"

Source§

impl TypedObject for ThreatActor

Source§

const TYPE: &'static str = "threat-actor"

Source§

impl TypedObject for Tool

Source§

const TYPE: &'static str = "tool"

Source§

impl TypedObject for Vulnerability

Source§

const TYPE: &'static str = "vulnerability"

Source§

impl<T> TypedObject for Bundle<T>

Source§

const TYPE: &'static str = "bundle"