#[repr(i32)]pub enum Verb {
Read = 0,
Create = 1,
Update = 2,
Delete = 3,
Transact = 4,
Initiate = 5,
Commit = 6,
}
Expand description
Verb defines the actions a subject can perform on a resource.
Variants§
Read = 0
Read access
Create = 1
Create access
Update = 2
Update access
Delete = 3
Delete access
Transact = 4
Transaction access
Initiate = 5
Initiate transaction
Commit = 6
Commit transaction
Implementations§
Source§impl Verb
impl Verb
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 Ord for Verb
impl Ord for Verb
Source§impl PartialOrd for Verb
impl PartialOrd for Verb
impl Copy for Verb
impl Eq for Verb
impl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnwindSafe for Verb
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