pub enum AdminResponseBody {
Success(Value),
AgentList(Vec<AgentSummary>),
GroupList(Vec<GroupSummary>),
Quotas(Quotas),
Usage(ResourceUsage),
Invite(InviteIssued),
InviteRedeemed(InviteRedeemed),
InviteList(Vec<InviteSummary>),
PairToken(PairTokenIssued),
PairTokenRedeemed(PairTokenRedeemed),
Error(String),
}Expand description
Typed admin response body.
Variants§
Success(Value)
Generic success payload — used by mutating variants where the interesting result is “the write landed.”
AgentList(Vec<AgentSummary>)
Response for AdminRequestKind::AgentList.
GroupList(Vec<GroupSummary>)
Response for AdminRequestKind::GroupList.
Quotas(Quotas)
Response for AdminRequestKind::QuotaGet.
Usage(ResourceUsage)
Response for AdminRequestKind::UsageGet.
Invite(InviteIssued)
Response for AdminRequestKind::InviteIssue — the freshly
minted token plus its persisted metadata. The redemption URL is
derived client-side from the deployment’s public gateway base
URL; the kernel never knows where the gateway is reachable.
InviteRedeemed(InviteRedeemed)
Response for AdminRequestKind::InviteRedeem — the new
principal id (so the redeemer can locally pin the binding) and
the assigned group. The redeemer also gets back the issuing
public-key fingerprint so out-of-band verification of the
minted principal becomes possible.
InviteList(Vec<InviteSummary>)
Response for AdminRequestKind::InviteList.
PairToken(PairTokenIssued)
Response for AdminRequestKind::PairDeviceIssue.
PairTokenRedeemed(PairTokenRedeemed)
Response for AdminRequestKind::PairDeviceRedeem.
Error(String)
The request failed.
Trait Implementations§
Source§impl Clone for AdminResponseBody
impl Clone for AdminResponseBody
Source§fn clone(&self) -> AdminResponseBody
fn clone(&self) -> AdminResponseBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more