pub struct CredentialKeyTransition {
pub kid: String,
pub from: String,
pub to: String,
}Expand description
One key’s lifecycle move within a credential mutation
(docs/design/credential-store.md).
Carries the key id and the two lifecycle states it moved between, and nothing else. A salt, a digest, or a public key must never reach an audit record (INV-C3), so this type has nowhere to put one.
Fields§
§kid: StringThe key that moved.
from: StringThe state it moved from ("absent" for a key that did not exist).
to: StringThe state it moved to.
Trait Implementations§
Source§impl Clone for CredentialKeyTransition
impl Clone for CredentialKeyTransition
Source§fn clone(&self) -> CredentialKeyTransition
fn clone(&self) -> CredentialKeyTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialKeyTransition
impl Debug for CredentialKeyTransition
impl Eq for CredentialKeyTransition
Source§impl PartialEq for CredentialKeyTransition
impl PartialEq for CredentialKeyTransition
impl StructuralPartialEq for CredentialKeyTransition
Auto Trait Implementations§
impl Freeze for CredentialKeyTransition
impl RefUnwindSafe for CredentialKeyTransition
impl Send for CredentialKeyTransition
impl Sync for CredentialKeyTransition
impl Unpin for CredentialKeyTransition
impl UnsafeUnpin for CredentialKeyTransition
impl UnwindSafe for CredentialKeyTransition
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
Mutably borrows from an owned value. Read more
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§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§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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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