pub enum SubjectKind {
Person,
Household,
Service,
}Expand description
The subject-kind vocabulary for a local partition binding (spec §3.6,
amended by §R.5). Closed, forever, at exactly three values: person,
household, and service. Each is a derivation prefix for a principal
that gets its own partition — recording a derivation input is not adding
a taxonomy, and this enum being closed is what makes that true.
service is a principal kind, not a loosening of the closed-vocabulary
guardrail: the security review ruled that a headless service principal
needs its own partition because its key cannot be a second wrap of a
person’s — e.g. division CI must not run under a person’s principal. It
describes a principal without a human, not a kind of customer.
Permanently banned, and this is the guardrail that still holds without
exception: a segment value — business, org, team, project,
client, division — is the banned segment field wearing a
storage-layer costume and requires an explicit maintainer decision before
it could ever exist. A division household is a household, identical in
every recorded byte to a family household except the free-text label.
Variants§
Trait Implementations§
Source§impl Clone for SubjectKind
impl Clone for SubjectKind
impl Copy for SubjectKind
Source§impl Debug for SubjectKind
impl Debug for SubjectKind
Source§impl<'de> Deserialize<'de> for SubjectKind
impl<'de> Deserialize<'de> for SubjectKind
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>,
impl Eq for SubjectKind
Source§impl PartialEq for SubjectKind
impl PartialEq for SubjectKind
Source§impl Serialize for SubjectKind
impl Serialize for SubjectKind
impl StructuralPartialEq for SubjectKind
Auto Trait Implementations§
impl Forget for SubjectKind
impl Freeze for SubjectKind
impl Move for SubjectKind
impl RefUnwindSafe for SubjectKind
impl Send for SubjectKind
impl Sync for SubjectKind
impl Unpin for SubjectKind
impl UnsafeUnpin for SubjectKind
impl UnwindSafe for SubjectKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more