#[non_exhaustive]pub struct DetailedFindingAttributes {
pub evaluation: Option<FindingEvaluation>,
pub evaluation_changed_at: Option<i64>,
pub message: Option<String>,
pub mute: Option<FindingMute>,
pub resource: Option<String>,
pub resource_configuration: Option<BTreeMap<String, Value>>,
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 additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The JSON:API attributes of the detailed 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.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).
message: Option<String>
The remediation message for this finding.
mute: Option<FindingMute>
Information about the mute status of this finding.
resource: Option<String>
The resource name of this finding.
resource_configuration: Option<BTreeMap<String, Value>>
The resource configuration for 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.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl DetailedFindingAttributes
impl DetailedFindingAttributes
pub fn new() -> DetailedFindingAttributes
pub fn evaluation(self, value: FindingEvaluation) -> Self
pub fn evaluation_changed_at(self, value: i64) -> Self
pub fn message(self, value: String) -> Self
pub fn mute(self, value: FindingMute) -> Self
pub fn resource(self, value: String) -> Self
pub fn resource_configuration(self, value: BTreeMap<String, Value>) -> 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 additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DetailedFindingAttributes
impl Clone for DetailedFindingAttributes
Source§fn clone(&self) -> DetailedFindingAttributes
fn clone(&self) -> DetailedFindingAttributes
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 DetailedFindingAttributes
impl Debug for DetailedFindingAttributes
Source§impl Default for DetailedFindingAttributes
impl Default for DetailedFindingAttributes
Source§impl<'de> Deserialize<'de> for DetailedFindingAttributes
impl<'de> Deserialize<'de> for DetailedFindingAttributes
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 DetailedFindingAttributes
Auto Trait Implementations§
impl Freeze for DetailedFindingAttributes
impl RefUnwindSafe for DetailedFindingAttributes
impl Send for DetailedFindingAttributes
impl Sync for DetailedFindingAttributes
impl Unpin for DetailedFindingAttributes
impl UnwindSafe for DetailedFindingAttributes
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