Struct google_ondemandscanning1::api::Occurrence[][src]

pub struct Occurrence {
    pub attestation: Option<AttestationOccurrence>,
    pub build: Option<BuildOccurrence>,
    pub create_time: Option<String>,
    pub deployment: Option<DeploymentOccurrence>,
    pub discovery: Option<DiscoveryOccurrence>,
    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>,
}

An instance of an analysis type that has been found on a resource.

This type is not used in any activity, and only used as part of another schema.

Fields

attestation: Option<AttestationOccurrence>

Describes an attestation of an artifact.

build: Option<BuildOccurrence>

Describes a verifiable build.

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.

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

impl Clone for Occurrence[src]

impl Debug for Occurrence[src]

impl Default for Occurrence[src]

impl<'de> Deserialize<'de> for Occurrence[src]

impl Part for Occurrence[src]

impl Serialize for Occurrence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.