pub struct Granted(/* private fields */);Expand description
The set of privileges an action was granted (§6.6.6.2).
A set rather than a single highest privilege, because §9.10.5.2’s ProxyView is not
part of the subsumption chain: add_granted_privilege expands Operate, Manage and
Administer downward to View, but nothing grants ProxyView except ProxyView itself.
Collapsing the set to its maximum would quietly hand every View holder a privilege the
specification never gives them.
Implementations§
Source§impl Granted
impl Granted
Sourcepub const fn highest(self) -> Option<Privilege>
pub const fn highest(self) -> Option<Privilege>
The strongest privilege in the set, in §6.6.1’s order.
A set is what §6.6.6.2 actually produces, and it is the honest shape — ProxyView sits outside the chain, so “the maximum” is not always a single answer. This reduces it to one for the callers that need a single value to hand a cluster, and ProxyView is not among the answers: it grants nothing the other four do and is never what a cluster means by “the privilege this subject holds”.