pub struct AcceptedIdentityState {
pub epoch: u64,
pub head_digest: [u8; 64],
pub subject_keys: Vec<AcceptedSubjectKey>,
pub service_ids: Vec<String>,
pub expires_at_unix_ms: Option<i64>,
}Expand description
The accepted current state for one did:at9p identity, projected for
admission decisions. This is the admission-relevant slice of the daemon’s
AcceptedAt9pState (hyprstream-pds::at9p_duplicity); the projection lives
at the daemon boundary so this crate keeps no pds dependency.
Fields§
§epoch: u64Accepted chain epoch.
head_digest: [u8; 64]H512 over the canonical accepted head record.
subject_keys: Vec<AcceptedSubjectKey>The accepted current subject keys (a published SET, not positional).
service_ids: Vec<String>The accepted capsule’s #<name> service entry ids, projected verbatim
so admission-side DID → deployment-service-name derivation (#1652)
needs zero extra store reads. Empty when the capsule carries no service
entries; foreign records may carry ids that match no deployment service
(consumers apply their own factory-roster membership filter).
expires_at_unix_ms: Option<i64>Successor expiry (unix ms). None = genesis, current until a successor
is accepted (mirrors AcceptedAt9pState::ensure_fresh).
Implementations§
Source§impl AcceptedIdentityState
impl AcceptedIdentityState
Sourcepub fn subject_key_for(&self, ed25519: &[u8; 32]) -> Option<&AcceptedSubjectKey>
pub fn subject_key_for(&self, ed25519: &[u8; 32]) -> Option<&AcceptedSubjectKey>
The published subject key whose Ed25519 half equals ed25519, if any.
Set membership, never positional (#1188/#1183).
Trait Implementations§
Source§impl Clone for AcceptedIdentityState
impl Clone for AcceptedIdentityState
Source§fn clone(&self) -> AcceptedIdentityState
fn clone(&self) -> AcceptedIdentityState
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 AcceptedIdentityState
impl Debug for AcceptedIdentityState
Source§impl PartialEq for AcceptedIdentityState
impl PartialEq for AcceptedIdentityState
Source§fn eq(&self, other: &AcceptedIdentityState) -> bool
fn eq(&self, other: &AcceptedIdentityState) -> bool
self and other values to be equal, and is used by ==.impl Eq for AcceptedIdentityState
impl StructuralPartialEq for AcceptedIdentityState
Auto Trait Implementations§
impl Freeze for AcceptedIdentityState
impl RefUnwindSafe for AcceptedIdentityState
impl Send for AcceptedIdentityState
impl Sync for AcceptedIdentityState
impl Unpin for AcceptedIdentityState
impl UnsafeUnpin for AcceptedIdentityState
impl UnwindSafe for AcceptedIdentityState
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
key and return true if they are equal.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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