#[non_exhaustive]pub struct FindingAttributes {
pub evaluation: Option<FindingEvaluation>,
pub evaluation_changed_at: Option<i64>,
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 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.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).
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.
additional_properties: BTreeMap<String, Value>Implementations§
source§impl FindingAttributes
impl FindingAttributes
pub fn new() -> FindingAttributes
pub fn evaluation(self, value: FindingEvaluation) -> Self
pub fn evaluation_changed_at(self, value: i64) -> 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 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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)