Struct google_api_proto::grafeas::v1::DiscoveryOccurrence
source · pub struct DiscoveryOccurrence {
pub continuous_analysis: i32,
pub analysis_status: i32,
pub analysis_completed: Option<AnalysisCompleted>,
pub analysis_error: Vec<Status>,
pub analysis_status_error: Option<Status>,
pub cpe: String,
pub last_scan_time: Option<Timestamp>,
pub archive_time: Option<Timestamp>,
pub sbom_status: Option<SbomStatus>,
pub vulnerability_attestation: Option<VulnerabilityAttestation>,
}
Expand description
Provides information about the analysis status of a discovered resource.
Fields§
§continuous_analysis: i32
Whether the resource is continuously analyzed.
analysis_status: i32
The status of discovery for the resource.
analysis_completed: Option<AnalysisCompleted>
§analysis_error: Vec<Status>
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
analysis_status_error: Option<Status>
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
cpe: String
The CPE of the resource being scanned.
last_scan_time: Option<Timestamp>
The last time this resource was scanned.
archive_time: Option<Timestamp>
The time occurrences related to this discovery occurrence were archived.
sbom_status: Option<SbomStatus>
The status of an SBOM generation.
vulnerability_attestation: Option<VulnerabilityAttestation>
The status of an vulnerability attestation generation.
Implementations§
source§impl DiscoveryOccurrence
impl DiscoveryOccurrence
sourcepub fn continuous_analysis(&self) -> ContinuousAnalysis
pub fn continuous_analysis(&self) -> ContinuousAnalysis
Returns the enum value of continuous_analysis
, or the default if the field is set to an invalid enum value.
sourcepub fn set_continuous_analysis(&mut self, value: ContinuousAnalysis)
pub fn set_continuous_analysis(&mut self, value: ContinuousAnalysis)
Sets continuous_analysis
to the provided enum value.
sourcepub fn analysis_status(&self) -> AnalysisStatus
pub fn analysis_status(&self) -> AnalysisStatus
Returns the enum value of analysis_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_analysis_status(&mut self, value: AnalysisStatus)
pub fn set_analysis_status(&mut self, value: AnalysisStatus)
Sets analysis_status
to the provided enum value.
Trait Implementations§
source§impl Clone for DiscoveryOccurrence
impl Clone for DiscoveryOccurrence
source§fn clone(&self) -> DiscoveryOccurrence
fn clone(&self) -> DiscoveryOccurrence
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiscoveryOccurrence
impl Debug for DiscoveryOccurrence
source§impl Default for DiscoveryOccurrence
impl Default for DiscoveryOccurrence
source§impl Message for DiscoveryOccurrence
impl Message for DiscoveryOccurrence
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DiscoveryOccurrence
impl PartialEq for DiscoveryOccurrence
source§fn eq(&self, other: &DiscoveryOccurrence) -> bool
fn eq(&self, other: &DiscoveryOccurrence) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiscoveryOccurrence
Auto Trait Implementations§
impl Freeze for DiscoveryOccurrence
impl RefUnwindSafe for DiscoveryOccurrence
impl Send for DiscoveryOccurrence
impl Sync for DiscoveryOccurrence
impl Unpin for DiscoveryOccurrence
impl UnwindSafe for DiscoveryOccurrence
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request