Enum google_api_proto::google::privacy::dlp::v2::data_profile_pub_sub_condition::ProfileScoreBucket
source · #[repr(i32)]pub enum ProfileScoreBucket {
Unspecified = 0,
High = 1,
MediumOrHigh = 2,
}
Expand description
Various score levels for resources.
Variants§
Unspecified = 0
Unused.
High = 1
High risk/sensitivity detected.
MediumOrHigh = 2
Medium or high risk/sensitivity detected.
Implementations§
source§impl ProfileScoreBucket
impl ProfileScoreBucket
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 ProfileScoreBucket
impl Clone for ProfileScoreBucket
source§fn clone(&self) -> ProfileScoreBucket
fn clone(&self) -> ProfileScoreBucket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProfileScoreBucket
impl Debug for ProfileScoreBucket
source§impl Default for ProfileScoreBucket
impl Default for ProfileScoreBucket
source§fn default() -> ProfileScoreBucket
fn default() -> ProfileScoreBucket
Returns the “default value” for a type. Read more
source§impl From<ProfileScoreBucket> for i32
impl From<ProfileScoreBucket> for i32
source§fn from(value: ProfileScoreBucket) -> i32
fn from(value: ProfileScoreBucket) -> i32
Converts to this type from the input type.
source§impl Hash for ProfileScoreBucket
impl Hash for ProfileScoreBucket
source§impl Ord for ProfileScoreBucket
impl Ord for ProfileScoreBucket
source§fn cmp(&self, other: &ProfileScoreBucket) -> Ordering
fn cmp(&self, other: &ProfileScoreBucket) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProfileScoreBucket
impl PartialEq for ProfileScoreBucket
source§fn eq(&self, other: &ProfileScoreBucket) -> bool
fn eq(&self, other: &ProfileScoreBucket) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProfileScoreBucket
impl PartialOrd for ProfileScoreBucket
source§fn partial_cmp(&self, other: &ProfileScoreBucket) -> Option<Ordering>
fn partial_cmp(&self, other: &ProfileScoreBucket) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ProfileScoreBucket
impl TryFrom<i32> for ProfileScoreBucket
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ProfileScoreBucket, DecodeError>
fn try_from(value: i32) -> Result<ProfileScoreBucket, DecodeError>
Performs the conversion.
impl Copy for ProfileScoreBucket
impl Eq for ProfileScoreBucket
impl StructuralPartialEq for ProfileScoreBucket
Auto Trait Implementations§
impl Freeze for ProfileScoreBucket
impl RefUnwindSafe for ProfileScoreBucket
impl Send for ProfileScoreBucket
impl Sync for ProfileScoreBucket
impl Unpin for ProfileScoreBucket
impl UnwindSafe for ProfileScoreBucket
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
Mutably borrows from an owned value. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request