#[non_exhaustive]pub struct Trait {
pub category: Option<String>,
pub name: Option<String>,
pub type: Option<String>,
pub uid: Option<String>,
pub values: Option<Vec<String>>,
}Expand description
Trait
Describes a characteristic or feature of an entity that was observed. For example, this object can be used to represent specific characteristics derived from events or findings that can be surfaced as distinguishing traits of the entity in question.
[] Category: | Name: trait
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.category: Option<String>Category
The high-level grouping or classification this trait belongs to.
optional
name: Option<String>Name
The name of the trait.
recommended
type: Option<String>Type
The type of the trait. For example, this can be used to indicate if the trait acts as a contributing factor (increases risk/severity) or a mitigating factor (decreases risk/severity), in the context of the related finding.
optional
uid: Option<String>Unique ID
The unique identifier of the trait.
recommended
values: Option<Vec<String>>Values
The values of the trait.
optional
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trait
impl<'de> Deserialize<'de> for Trait
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
impl StructuralPartialEq for Trait
Auto Trait Implementations§
impl Freeze for Trait
impl RefUnwindSafe for Trait
impl Send for Trait
impl Sync for Trait
impl Unpin for Trait
impl UnwindSafe for Trait
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