#[non_exhaustive]pub struct VendorAttributes {
pub severity: Option<String>,
pub severity_id: Option<i64>,
}Expand description
Vendor Attributes
The Vendor Attributes object can be used to represent values of attributes populated by the Vendor/Finding Provider. It can help distinguish between the vendor-provided values and consumer-updated values, of key attributes like severity_id.
The original finding producer should not populate this object. It should be populated by consuming systems that support data mutability.
[] Category: | Name: vendor_attributes
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.severity: Option<String>Severity
The finding severity, as reported by the Vendor (Finding Provider). The value should be normalized to the caption of the severity_id value. In the case of ‘Other’, it is defined by the source.
optional
severity_id: Option<i64>Severity ID
The finding severity ID, as reported by the Vendor (Finding Provider).
optional
Trait Implementations§
Source§impl Clone for VendorAttributes
impl Clone for VendorAttributes
Source§fn clone(&self) -> VendorAttributes
fn clone(&self) -> VendorAttributes
Returns a duplicate of the value. Read more
1.0.0 · 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 VendorAttributes
impl Debug for VendorAttributes
Source§impl Default for VendorAttributes
impl Default for VendorAttributes
Source§fn default() -> VendorAttributes
fn default() -> VendorAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VendorAttributeswhere
VendorAttributes: Default,
impl<'de> Deserialize<'de> for VendorAttributeswhere
VendorAttributes: Default,
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 PartialEq for VendorAttributes
impl PartialEq for VendorAttributes
Source§impl Serialize for VendorAttributes
impl Serialize for VendorAttributes
impl StructuralPartialEq for VendorAttributes
Auto Trait Implementations§
impl Freeze for VendorAttributes
impl RefUnwindSafe for VendorAttributes
impl Send for VendorAttributes
impl Sync for VendorAttributes
impl Unpin for VendorAttributes
impl UnwindSafe for VendorAttributes
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