pub struct EnrollOutcome {
pub username: String,
pub fingerprint: String,
pub algorithm: KeyAlgorithm,
pub key_backed_up: Option<PathBuf>,
pub pq_key_backed_up: Option<PathBuf>,
pub notices: Vec<String>,
}Expand description
Result of enrolling a user identity.
Fields§
§username: String§fingerprint: StringSSH-style SHA256: fingerprint of the bound verifying key. Always the
Ed25519 anchor’s fingerprint (the kid) — a bound ML-DSA-65 key does
not change it.
algorithm: KeyAlgorithmAlgorithm actually enrolled — KeyAlgorithm::HybridEd25519MlDsa65
under a Hybrid policy, KeyAlgorithm::Ed25519 under Classical. Never
hardcoded; reflects what was really written.
key_backed_up: Option<PathBuf>Path of the prior user-signing-key backup, if an existing key was
displaced by an adopt (--ssh/--key). None for Generate.
pq_key_backed_up: Option<PathBuf>Path of the prior user-signing-key.mldsa backup, if a PQ sibling was
displaced by an adopt. None otherwise.
notices: Vec<String>Human-facing notices the caller should print verbatim (e.g. a classical downgrade warning, or that a PQ component was generated for an adopted SSH/seed key). Never silent.
Trait Implementations§
Source§impl Clone for EnrollOutcome
impl Clone for EnrollOutcome
Source§fn clone(&self) -> EnrollOutcome
fn clone(&self) -> EnrollOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EnrollOutcome
impl RefUnwindSafe for EnrollOutcome
impl Send for EnrollOutcome
impl Sync for EnrollOutcome
impl Unpin for EnrollOutcome
impl UnsafeUnpin for EnrollOutcome
impl UnwindSafe for EnrollOutcome
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request