Enum google_api_proto::google::privacy::dlp::v2::info_type_category::TypeCategory
source · #[repr(i32)]pub enum TypeCategory {
TypeUnspecified = 0,
Pii = 1,
Spii = 2,
Demographic = 3,
Credential = 4,
GovernmentId = 5,
Document = 6,
ContextualInformation = 7,
}
Expand description
Enum of the current types in the category. We might add more types in the future.
Variants§
TypeUnspecified = 0
Unused type
Pii = 1
Personally identifiable information, for example, a name or phone number
Spii = 2
Personally identifiable information that is especially sensitive, for example, a passport number.
Demographic = 3
Attributes that can partially identify someone, especially in combination with other attributes, like age, height, and gender.
Credential = 4
Confidential or secret information, for example, a password.
GovernmentId = 5
An identification document issued by a government.
Document = 6
A document, for example, a resume or source code.
ContextualInformation = 7
Information that is not sensitive on its own, but provides details about the circumstances surrounding an entity or an event.
Implementations§
source§impl TypeCategory
impl TypeCategory
source§impl TypeCategory
impl TypeCategory
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 TypeCategory
impl Clone for TypeCategory
source§fn clone(&self) -> TypeCategory
fn clone(&self) -> TypeCategory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TypeCategory
impl Debug for TypeCategory
source§impl Default for TypeCategory
impl Default for TypeCategory
source§fn default() -> TypeCategory
fn default() -> TypeCategory
source§impl From<TypeCategory> for i32
impl From<TypeCategory> for i32
source§fn from(value: TypeCategory) -> i32
fn from(value: TypeCategory) -> i32
source§impl Hash for TypeCategory
impl Hash for TypeCategory
source§impl Ord for TypeCategory
impl Ord for TypeCategory
source§fn cmp(&self, other: &TypeCategory) -> Ordering
fn cmp(&self, other: &TypeCategory) -> 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 TypeCategory
impl PartialEq for TypeCategory
source§fn eq(&self, other: &TypeCategory) -> bool
fn eq(&self, other: &TypeCategory) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TypeCategory
impl PartialOrd for TypeCategory
source§fn partial_cmp(&self, other: &TypeCategory) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeCategory) -> 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 TypeCategory
impl TryFrom<i32> for TypeCategory
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<TypeCategory, DecodeError>
fn try_from(value: i32) -> Result<TypeCategory, DecodeError>
impl Copy for TypeCategory
impl Eq for TypeCategory
impl StructuralPartialEq for TypeCategory
Auto Trait Implementations§
impl Freeze for TypeCategory
impl RefUnwindSafe for TypeCategory
impl Send for TypeCategory
impl Sync for TypeCategory
impl Unpin for TypeCategory
impl UnwindSafe for TypeCategory
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