pub struct PreRotationStatus {
pub committed_count: usize,
pub active: bool,
pub never_set: bool,
}Expand description
Summary of the DID’s currently-effective pre-rotation setup, extracted from the on-disk log without needing to depend on didwebvh-rs. Surfaced before the “Override pre-rotation count?” prompt so the operator can see what they’re choosing to change.
Pre-rotation is “active” when the most recent log entry that
mentions nextKeyHashes has a non-empty array. Walking back
through entries handles the did:webvh delta-parameter model
(subsequent entries may omit unchanged fields).
Fields§
§committed_count: usizeNumber of pre-rotation keys committed in the most recent
non-empty commitment. 0 when pre-rotation is disabled or
has never been enabled.
active: boolTrue iff the most recent mention of nextKeyHashes was
non-empty. False when the most recent mention was an empty
array (explicit disable) or when no entry has ever mentioned
the field.
never_set: boolTrue when no entry in the log has ever mentioned
nextKeyHashes — distinguishes “never enabled” from
“explicitly disabled” for the operator-facing display.
Trait Implementations§
Source§impl Clone for PreRotationStatus
impl Clone for PreRotationStatus
Source§fn clone(&self) -> PreRotationStatus
fn clone(&self) -> PreRotationStatus
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 PreRotationStatus
impl Debug for PreRotationStatus
impl Eq for PreRotationStatus
Source§impl PartialEq for PreRotationStatus
impl PartialEq for PreRotationStatus
Source§fn eq(&self, other: &PreRotationStatus) -> bool
fn eq(&self, other: &PreRotationStatus) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreRotationStatus
Auto Trait Implementations§
impl Freeze for PreRotationStatus
impl RefUnwindSafe for PreRotationStatus
impl Send for PreRotationStatus
impl Sync for PreRotationStatus
impl Unpin for PreRotationStatus
impl UnsafeUnpin for PreRotationStatus
impl UnwindSafe for PreRotationStatus
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.