pub enum Action {
SignCommit,
SignRelease,
ManageMembers,
RotateKeys,
Custom(String),
}Expand description
An action that requires authorization.
Actions map to capabilities - a device can only perform an action if its attestation includes the corresponding capability.
Variants§
SignCommit
Sign a git commit
SignRelease
Sign a release
ManageMembers
Manage organization members
RotateKeys
Rotate identity keys
Custom(String)
Custom action (must match a custom capability)
Implementations§
Source§impl Action
impl Action
Sourcepub fn to_capability(&self) -> Result<Capability, String>
pub fn to_capability(&self) -> Result<Capability, String>
Convert action to the corresponding capability.
Returns Err if a custom action string is invalid (e.g., empty, too long,
contains invalid characters, or uses a reserved namespace).
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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