pub enum StixObject {
Typed(TypedObject),
Generic(GenericObject),
Custom(Arc<dyn CustomObject>),
}Expand description
A STIX object: a recognized typed object, a generic value bag, or a consumer-registered custom object.
Variants§
Typed(TypedObject)
A recognized type with a dedicated struct.
Generic(GenericObject)
Any other type, stored as a flat property map.
Custom(Arc<dyn CustomObject>)
A consumer-registered custom object.
Implementations§
Trait Implementations§
Source§impl Clone for StixObject
impl Clone for StixObject
Source§fn clone(&self) -> StixObject
fn clone(&self) -> StixObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StixObject
impl Debug for StixObject
Source§impl<'de> Deserialize<'de> for StixObject
impl<'de> Deserialize<'de> for StixObject
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ObjectView for StixObject
impl ObjectView for StixObject
Source§impl PartialEq for StixObject
impl PartialEq for StixObject
Auto Trait Implementations§
impl !RefUnwindSafe for StixObject
impl !UnwindSafe for StixObject
impl Freeze for StixObject
impl Send for StixObject
impl Sync for StixObject
impl Unpin for StixObject
impl UnsafeUnpin for StixObject
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