Struct gapi_grpc::grafeas::v1beta1::Occurrence[][src]

pub struct Occurrence {
    pub name: String,
    pub resource: Option<Resource>,
    pub note_name: String,
    pub kind: i32,
    pub remediation: String,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub details: Option<Details>,
}

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

Fields

name: String

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

resource: Option<Resource>

Required. Immutable. The resource for which the occurrence applies.

note_name: 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.

kind: i32

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

remediation: String

A description of actions that can be taken to remedy the note.

create_time: Option<Timestamp>

Output only. The time this occurrence was created.

update_time: Option<Timestamp>

Output only. The time this occurrence was last updated.

details: Option<Details>

Required. Immutable. Describes the details of the note kind found on this resource.

Implementations

impl Occurrence[src]

pub fn kind(&self) -> NoteKind[src]

Returns the enum value of kind, or the default if the field is set to an invalid enum value.

pub fn set_kind(&mut self, value: NoteKind)[src]

Sets kind to the provided enum value.

Trait Implementations

impl Clone for Occurrence[src]

impl Debug for Occurrence[src]

impl Default for Occurrence[src]

impl Message for Occurrence[src]

impl PartialEq<Occurrence> for Occurrence[src]

impl StructuralPartialEq for Occurrence[src]

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

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]