pub enum Role {
Instance,
Operator,
Provisioner,
}Expand description
Roles are disjoint. An operator credential cannot fund an instance, and a provisioner reaches only the self-service subset of the admin API (#39).
Variants§
Instance
A service instance: lease lifecycle, snapshot and principal reads,
the active-credential projection (GET /v1/keys) and usage ingestion.
Operator
An operator: every route under /v1/admin, including account
funding, status, budgets, credentials and snapshot publication.
Provisioner
A self-service account service (#39): creates unfunded, suspended,
best-effort accounts, activates them, sets budgets within its
ceiling, and manages their credentials, on accounts a provisioner
created only. It can never fund, suspend, close, grant Assured, or
publish principal snapshots.
Implementations§
Trait Implementations§
impl Copy for Role
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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 Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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