Enum google_api_proto::google::privacy::dlp::v2::StoredInfoTypeState
source · #[repr(i32)]pub enum StoredInfoTypeState {
Unspecified = 0,
Pending = 1,
Ready = 2,
Failed = 3,
Invalid = 4,
}
Expand description
State of a StoredInfoType version.
Variants§
Unspecified = 0
Unused
Pending = 1
StoredInfoType version is being created.
Ready = 2
StoredInfoType version is ready for use.
Failed = 3
StoredInfoType creation failed. All relevant error messages are returned in
the StoredInfoTypeVersion
message.
Invalid = 4
StoredInfoType is no longer valid because artifacts stored in
user-controlled storage were modified. To fix an invalid StoredInfoType,
use the UpdateStoredInfoType
method to create a new version.
Implementations§
source§impl StoredInfoTypeState
impl StoredInfoTypeState
sourcepub fn from_i32(value: i32) -> Option<StoredInfoTypeState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<StoredInfoTypeState>
Converts an i32
to a StoredInfoTypeState
, or None
if value
is not a valid variant.
source§impl StoredInfoTypeState
impl StoredInfoTypeState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for StoredInfoTypeState
impl Clone for StoredInfoTypeState
source§fn clone(&self) -> StoredInfoTypeState
fn clone(&self) -> StoredInfoTypeState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StoredInfoTypeState
impl Debug for StoredInfoTypeState
source§impl Default for StoredInfoTypeState
impl Default for StoredInfoTypeState
source§fn default() -> StoredInfoTypeState
fn default() -> StoredInfoTypeState
source§impl From<StoredInfoTypeState> for i32
impl From<StoredInfoTypeState> for i32
source§fn from(value: StoredInfoTypeState) -> i32
fn from(value: StoredInfoTypeState) -> i32
source§impl Hash for StoredInfoTypeState
impl Hash for StoredInfoTypeState
source§impl Ord for StoredInfoTypeState
impl Ord for StoredInfoTypeState
source§fn cmp(&self, other: &StoredInfoTypeState) -> Ordering
fn cmp(&self, other: &StoredInfoTypeState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for StoredInfoTypeState
impl PartialEq for StoredInfoTypeState
source§fn eq(&self, other: &StoredInfoTypeState) -> bool
fn eq(&self, other: &StoredInfoTypeState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StoredInfoTypeState
impl PartialOrd for StoredInfoTypeState
source§fn partial_cmp(&self, other: &StoredInfoTypeState) -> Option<Ordering>
fn partial_cmp(&self, other: &StoredInfoTypeState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for StoredInfoTypeState
impl TryFrom<i32> for StoredInfoTypeState
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<StoredInfoTypeState, DecodeError>
fn try_from(value: i32) -> Result<StoredInfoTypeState, DecodeError>
impl Copy for StoredInfoTypeState
impl Eq for StoredInfoTypeState
impl StructuralPartialEq for StoredInfoTypeState
Auto Trait Implementations§
impl Freeze for StoredInfoTypeState
impl RefUnwindSafe for StoredInfoTypeState
impl Send for StoredInfoTypeState
impl Sync for StoredInfoTypeState
impl Unpin for StoredInfoTypeState
impl UnwindSafe for StoredInfoTypeState
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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