Struct google_containeranalysis1::api::Occurrence
source · [−]pub struct Occurrence {Show 18 fields
pub attestation: Option<AttestationOccurrence>,
pub build: Option<BuildOccurrence>,
pub compliance: Option<ComplianceOccurrence>,
pub create_time: Option<String>,
pub deployment: Option<DeploymentOccurrence>,
pub discovery: Option<DiscoveryOccurrence>,
pub dsse_attestation: Option<DSSEAttestationOccurrence>,
pub envelope: Option<Envelope>,
pub image: Option<ImageOccurrence>,
pub kind: Option<String>,
pub name: Option<String>,
pub note_name: Option<String>,
pub package: Option<PackageOccurrence>,
pub remediation: Option<String>,
pub resource_uri: Option<String>,
pub update_time: Option<String>,
pub upgrade: Option<UpgradeOccurrence>,
pub vulnerability: Option<VulnerabilityOccurrence>,
}
Expand description
An instance of an analysis type that has been found on a resource.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- occurrences create projects (request|response)
- occurrences get projects (response)
- occurrences patch projects (request|response)
Fields
attestation: Option<AttestationOccurrence>
Describes an attestation of an artifact.
build: Option<BuildOccurrence>
Describes a verifiable build.
compliance: Option<ComplianceOccurrence>
Describes a compliance violation on a linked resource.
create_time: Option<String>
Output only. The time this occurrence was created.
deployment: Option<DeploymentOccurrence>
Describes the deployment of an artifact on a runtime.
discovery: Option<DiscoveryOccurrence>
Describes when a resource was discovered.
dsse_attestation: Option<DSSEAttestationOccurrence>
Describes an attestation of an artifact using dsse.
envelope: Option<Envelope>
https://github.com/secure-systems-lab/dsse
image: Option<ImageOccurrence>
Describes how this resource derives from the basis in the associated note.
kind: Option<String>
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
name: Option<String>
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
note_name: Option<String>
Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
. This field can be used as a filter in list requests.
package: Option<PackageOccurrence>
Describes the installation of a package on the linked resource.
remediation: Option<String>
A description of actions that can be taken to remedy the note.
resource_uri: Option<String>
Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc
for a Docker image.
update_time: Option<String>
Output only. The time this occurrence was last updated.
upgrade: Option<UpgradeOccurrence>
Describes an available package upgrade on the linked resource.
vulnerability: Option<VulnerabilityOccurrence>
Describes a security vulnerability.
Trait Implementations
sourceimpl Clone for Occurrence
impl Clone for Occurrence
sourcefn clone(&self) -> Occurrence
fn clone(&self) -> Occurrence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Occurrence
impl Debug for Occurrence
sourceimpl Default for Occurrence
impl Default for Occurrence
sourcefn default() -> Occurrence
fn default() -> Occurrence
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Occurrence
impl<'de> Deserialize<'de> for Occurrence
sourcefn 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
sourceimpl Serialize for Occurrence
impl Serialize for Occurrence
impl RequestValue for Occurrence
impl ResponseResult for Occurrence
Auto Trait Implementations
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnwindSafe for Occurrence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more