#[repr(i32)]pub enum OperatorPermission {
Unspecified = 0,
Commit = 1,
DefineNamespace = 2,
ImportNamespace = 3,
}
Variants§
Implementations§
source§impl OperatorPermission
impl OperatorPermission
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 OperatorPermission
impl Clone for OperatorPermission
source§fn clone(&self) -> OperatorPermission
fn clone(&self) -> OperatorPermission
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 OperatorPermission
impl Debug for OperatorPermission
source§impl Default for OperatorPermission
impl Default for OperatorPermission
source§fn default() -> OperatorPermission
fn default() -> OperatorPermission
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for OperatorPermission
impl<'de> Deserialize<'de> for OperatorPermission
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<OperatorPermission> for i32
impl From<OperatorPermission> for i32
source§fn from(value: OperatorPermission) -> i32
fn from(value: OperatorPermission) -> i32
Converts to this type from the input type.
source§impl Hash for OperatorPermission
impl Hash for OperatorPermission
source§impl Ord for OperatorPermission
impl Ord for OperatorPermission
source§fn cmp(&self, other: &OperatorPermission) -> Ordering
fn cmp(&self, other: &OperatorPermission) -> 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 OperatorPermission
impl PartialEq for OperatorPermission
source§fn eq(&self, other: &OperatorPermission) -> bool
fn eq(&self, other: &OperatorPermission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OperatorPermission
impl PartialOrd for OperatorPermission
source§fn partial_cmp(&self, other: &OperatorPermission) -> Option<Ordering>
fn partial_cmp(&self, other: &OperatorPermission) -> 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 more§impl Serialize for OperatorPermission
impl Serialize for OperatorPermission
source§impl TryFrom<i32> for OperatorPermission
impl TryFrom<i32> for OperatorPermission
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<OperatorPermission, DecodeError>
fn try_from(value: i32) -> Result<OperatorPermission, DecodeError>
Performs the conversion.
impl Copy for OperatorPermission
impl Eq for OperatorPermission
impl StructuralPartialEq for OperatorPermission
Auto Trait Implementations§
impl Freeze for OperatorPermission
impl RefUnwindSafe for OperatorPermission
impl Send for OperatorPermission
impl Sync for OperatorPermission
impl Unpin for OperatorPermission
impl UnwindSafe for OperatorPermission
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