pub struct ObservedData {
pub type_: String,
pub id: String,
pub first_observed: String,
pub last_observed: String,
pub number_observed: u64,
pub object_refs: Vec<String>,
pub objects: Option<BTreeMap<String, StixValue>>,
pub additional: BTreeMap<String, StixValue>,
}Expand description
The STIX observed-data SDO.
Carries the temporal fields and object_refs the matcher needs. Unknown or
custom properties are retained in additional (via #[serde(flatten)]) so the
ObjectView still exposes them. Tolerates STIX 2.0 inline objects as well as
2.1 object_refs.
Fields§
§type_: StringThe STIX type property (always observed-data).
id: StringThe object’s STIX id.
first_observed: StringThe start of the observation window (RFC3339 timestamp).
last_observed: StringThe end of the observation window (RFC3339 timestamp).
number_observed: u64How many times the window’s contents were observed.
object_refs: Vec<String>The ids of the referenced SCOs (STIX 2.1).
objects: Option<BTreeMap<String, StixValue>>STIX 2.0 inline observed objects (objects), if present.
additional: BTreeMap<String, StixValue>Any other properties, retained for ObjectView and round-tripping.
Implementations§
Trait Implementations§
Source§impl Clone for ObservedData
impl Clone for ObservedData
Source§fn clone(&self) -> ObservedData
fn clone(&self) -> ObservedData
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 ObservedData
impl Debug for ObservedData
Source§impl<'de> Deserialize<'de> for ObservedData
impl<'de> Deserialize<'de> for ObservedData
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 ObservedData
impl ObjectView for ObservedData
Source§impl PartialEq for ObservedData
impl PartialEq for ObservedData
Source§fn eq(&self, other: &ObservedData) -> bool
fn eq(&self, other: &ObservedData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservedData
impl Serialize for ObservedData
impl StructuralPartialEq for ObservedData
Auto Trait Implementations§
impl Freeze for ObservedData
impl RefUnwindSafe for ObservedData
impl Send for ObservedData
impl Sync for ObservedData
impl Unpin for ObservedData
impl UnsafeUnpin for ObservedData
impl UnwindSafe for ObservedData
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