pub enum AccountKind {
Agent,
Pipeline,
Host,
Service,
}Expand description
One of the four account kinds this build recognizes.
Mirrors bot.did.registration’s actor union and
didbot-pds::kind::AccountKind exactly, but is declared independently
rather than reused from that crate — the same reasoning as Diff’s
doc comment on not coupling this crate to one storage engine’s shape,
applied to an account-kind enum instead of a diff type. A fifth kind
added to the lexicon is a silent gap here until this enum is edited to
match; nothing checks the two stay in step automatically.
Agents are the typical did.bot subject, not the only one: a policy
or an evaluator that quietly assumes every subject is an agent is wrong
about the other three, which is exactly what made AgentAttributes the
wrong name for SubjectAttributes in an earlier draft of this type.
This type is deliberately closed — the four kinds this build knows how
to reason about by name — and is not, by itself, what a subject’s kind
is typed as. That is SubjectKind, below, because the union it names
is open.
Variants§
Agent
A harness session with a model and a parent.
Pipeline
A CI identity bound to a workflow.
Host
A machine. No model, no harness, no parent.
Service
This software itself.
Implementations§
Trait Implementations§
Source§impl Clone for AccountKind
impl Clone for AccountKind
Source§fn clone(&self) -> AccountKind
fn clone(&self) -> AccountKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountKind
impl Debug for AccountKind
Source§impl Hash for AccountKind
impl Hash for AccountKind
Source§impl PartialEq for AccountKind
impl PartialEq for AccountKind
Source§fn eq(&self, other: &AccountKind) -> bool
fn eq(&self, other: &AccountKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for AccountKind
impl Eq for AccountKind
impl StructuralPartialEq for AccountKind
Auto Trait Implementations§
impl Freeze for AccountKind
impl RefUnwindSafe for AccountKind
impl Send for AccountKind
impl Sync for AccountKind
impl Unpin for AccountKind
impl UnsafeUnpin for AccountKind
impl UnwindSafe for AccountKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.