pub enum Operation {
Request,
Sign,
Verify,
Derive,
Wrap,
Unwrap,
Mint,
}Expand description
The closed operation vocabulary (DR-0053 §2). There is no Get variant
and never will be; a wire message naming an unknown operation fails to
deserialize.
Variants§
Implementations§
Source§impl Operation
impl Operation
pub const ALL: [Operation; 7]
pub fn as_str(&self) -> &'static str
pub fn parse(s: &str) -> Result<Self, String>
Sourcepub fn narrowable(&self) -> bool
pub fn narrowable(&self) -> bool
The two grant classes of DR-0053 §14. Narrowable operations (request
host/method/path globs, mint vendor scope strings) require their
list in a grant; the rest are named bare and a glob list on one of
them is a check error, not silently ignored.
Trait Implementations§
impl Copy for Operation
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
Source§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
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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