Struct google_api_proto::grafeas::v1beta1::Occurrence
source · 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>,
}
Expand description
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§
Trait Implementations§
source§impl Clone for Occurrence
impl Clone for Occurrence
source§fn clone(&self) -> Occurrence
fn clone(&self) -> Occurrence
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Occurrence
impl Debug for Occurrence
source§impl Default for Occurrence
impl Default for Occurrence
source§impl Message for Occurrence
impl Message for Occurrence
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 Occurrence
impl PartialEq for Occurrence
source§fn eq(&self, other: &Occurrence) -> bool
fn eq(&self, other: &Occurrence) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Occurrence
Auto Trait Implementations§
impl !Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnwindSafe for Occurrence
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