pub enum Verb {
Get,
Put,
List,
Delete,
Exists,
Cp,
Diff,
}Expand description
The verb a Store operation belongs to. Closed set so audit event
labels are statically known and cannot be widened by a caller.
Library-side verbs only. CLI-only concerns like run (subprocess
env injection) live in hasp-cli and build their own events via
AuditEvent::with_event using a &'static str label literal.
Variants§
Implementations§
Source§impl Verb
impl Verb
Sourcepub fn start_label(self) -> &'static str
pub fn start_label(self) -> &'static str
Static label for the *.start event.
Sourcepub fn done_label(self) -> &'static str
pub fn done_label(self) -> &'static str
Static label for the *.done event.
Trait Implementations§
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.