Struct google_api_proto::google::privacy::dlp::v2::StoredInfoTypeVersion
source · pub struct StoredInfoTypeVersion {
pub config: Option<StoredInfoTypeConfig>,
pub create_time: Option<Timestamp>,
pub state: i32,
pub errors: Vec<Error>,
pub stats: Option<StoredInfoTypeStats>,
}
Expand description
Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.
Fields§
§config: Option<StoredInfoTypeConfig>
StoredInfoType configuration.
create_time: Option<Timestamp>
Create timestamp of the version. Read-only, determined by the system when the version is created.
state: i32
Stored info type version state. Read-only, updated by the system during dictionary creation.
errors: Vec<Error>
Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first.
For example, some of the data for stored custom dictionaries is put in the user’s Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid.
If any errors occur, fix the problem indicated by the error message and
use the UpdateStoredInfoType API method to create another version of the
storedInfoType to continue using it, reusing the same config
if it was
not the source of the error.
stats: Option<StoredInfoTypeStats>
Statistics about this storedInfoType version.
Implementations§
source§impl StoredInfoTypeVersion
impl StoredInfoTypeVersion
sourcepub fn state(&self) -> StoredInfoTypeState
pub fn state(&self) -> StoredInfoTypeState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: StoredInfoTypeState)
pub fn set_state(&mut self, value: StoredInfoTypeState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Clone for StoredInfoTypeVersion
impl Clone for StoredInfoTypeVersion
source§fn clone(&self) -> StoredInfoTypeVersion
fn clone(&self) -> StoredInfoTypeVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StoredInfoTypeVersion
impl Debug for StoredInfoTypeVersion
source§impl Default for StoredInfoTypeVersion
impl Default for StoredInfoTypeVersion
source§impl Message for StoredInfoTypeVersion
impl Message for StoredInfoTypeVersion
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for StoredInfoTypeVersion
impl PartialEq for StoredInfoTypeVersion
source§fn eq(&self, other: &StoredInfoTypeVersion) -> bool
fn eq(&self, other: &StoredInfoTypeVersion) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StoredInfoTypeVersion
Auto Trait Implementations§
impl Freeze for StoredInfoTypeVersion
impl RefUnwindSafe for StoredInfoTypeVersion
impl Send for StoredInfoTypeVersion
impl Sync for StoredInfoTypeVersion
impl Unpin for StoredInfoTypeVersion
impl UnwindSafe for StoredInfoTypeVersion
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