pub struct GuidedRewrap {
pub secret: MintedSecret,
pub new_escrow: EscrowCache,
pub stored: EscrowStored,
pub shamir: Option<ShamirReissue>,
pub type_back_required: bool,
pub old_artifact_guidance: Option<OldArtifactGuidance>,
}Expand description
The outcome of a guided re-wrap: everything the UX needs, surfaced as data.
The master key is unchanged — this is wrap rotation, not key rotation (SSoT
§ On Repeated Failure). new_escrow wraps the same master key
under secret; no asset blob is touched or re-encrypted.
Fields§
§secret: MintedSecretThe freshly minted recovery secret — present once, confirm via the type-back
gate (MintedSecret::matches), then let it drop.
new_escrow: EscrowCacheThe new escrow blob (already stored on the server), cached locally with the
server’s stored_at.
stored: EscrowStoredWhat the store did — in particular whether it displaced an earlier escrow.
shamir: Option<ShamirReissue>Re-issued Shamir shares, when the account had social recovery enrolled.
type_back_required: boolWhether the client must run the setup-style type-back gate (always true).
old_artifact_guidance: Option<OldArtifactGuidance>Guidance about backup artifacts exported under the old secret: present only when the store replaced an earlier escrow. A re-wrap on an account that had none retired no secret, so there is no old artifact to warn about.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GuidedRewrap
impl RefUnwindSafe for GuidedRewrap
impl Send for GuidedRewrap
impl Sync for GuidedRewrap
impl Unpin for GuidedRewrap
impl UnsafeUnpin for GuidedRewrap
impl UnwindSafe for GuidedRewrap
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§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