#[non_exhaustive]pub struct FindingAttributes {Show 14 fields
pub datadog_link: Option<String>,
pub description: Option<String>,
pub evaluation: Option<FindingEvaluation>,
pub evaluation_changed_at: Option<i64>,
pub external_id: Option<String>,
pub mute: Option<FindingMute>,
pub resource: Option<String>,
pub resource_discovery_date: Option<i64>,
pub resource_type: Option<String>,
pub rule: Option<FindingRule>,
pub status: Option<FindingStatus>,
pub tags: Option<Vec<String>>,
pub vulnerability_type: Option<FindingVulnerabilityType>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The JSON:API attributes of the finding.
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.datadog_link: Option<String>
The Datadog relative link for this finding.
description: Option<String>
The description and remediation steps for this finding.
evaluation: Option<FindingEvaluation>
The evaluation of the finding.
evaluation_changed_at: Option<i64>
The date on which the evaluation for this finding changed (Unix ms).
external_id: Option<String>
The cloud-based ID for the resource related to the finding.
mute: Option<FindingMute>
Information about the mute status of this finding.
resource: Option<String>
The resource name of this finding.
resource_discovery_date: Option<i64>
The date on which the resource was discovered (Unix ms).
resource_type: Option<String>
The resource type of this finding.
rule: Option<FindingRule>
The rule that triggered this finding.
status: Option<FindingStatus>
The status of the finding.
The tags associated with this finding.
vulnerability_type: Option<FindingVulnerabilityType>
The vulnerability type of the finding.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl FindingAttributes
impl FindingAttributes
pub fn new() -> FindingAttributes
pub fn datadog_link(self, value: String) -> Self
pub fn description(self, value: String) -> Self
pub fn evaluation(self, value: FindingEvaluation) -> Self
pub fn evaluation_changed_at(self, value: i64) -> Self
pub fn external_id(self, value: String) -> Self
pub fn mute(self, value: FindingMute) -> Self
pub fn resource(self, value: String) -> Self
pub fn resource_discovery_date(self, value: i64) -> Self
pub fn resource_type(self, value: String) -> Self
pub fn rule(self, value: FindingRule) -> Self
pub fn status(self, value: FindingStatus) -> Self
pub fn vulnerability_type(self, value: FindingVulnerabilityType) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for FindingAttributes
impl Clone for FindingAttributes
Source§fn clone(&self) -> FindingAttributes
fn clone(&self) -> FindingAttributes
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 FindingAttributes
impl Debug for FindingAttributes
Source§impl Default for FindingAttributes
impl Default for FindingAttributes
Source§impl<'de> Deserialize<'de> for FindingAttributes
impl<'de> Deserialize<'de> for FindingAttributes
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 FindingAttributes
impl PartialEq for FindingAttributes
Source§impl Serialize for FindingAttributes
impl Serialize for FindingAttributes
impl StructuralPartialEq for FindingAttributes
Auto Trait Implementations§
impl Freeze for FindingAttributes
impl RefUnwindSafe for FindingAttributes
impl Send for FindingAttributes
impl Sync for FindingAttributes
impl Unpin for FindingAttributes
impl UnwindSafe for FindingAttributes
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