pub trait ObjectView {
// Required methods
fn id(&self) -> Option<&str>;
fn type_(&self) -> Option<&str>;
fn property(&self, name: &str) -> Option<StixValue>;
}Expand description
A read-only, type-agnostic view over a STIX object.
property returns an owned StixValue so typed objects can synthesize
values on demand without storing every field twice. The matcher consumes only
this trait, so it never needs to branch on typed vs. generic objects.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".