pub struct UserSecrets {
pub version: u32,
pub secrets: Vec<UserSecret>,
pub description: Option<String>,
pub replicas: Option<Replicas>,
}Expand description
Snapshot of the user-facing secret contents persisted by
crate::protocol::DeRecUserSecretStore for one secret_id.
Written every time the application calls
start(FlowKind::ProtectSecret); read by the pair-completion
auto-publish hook so a freshly-paired Helper or Replica receives the
current state without an explicit re-publish from the app.
Fields§
§version: u32Secret version this snapshot represents. Monotonically increasing
per secret_id — the protocol bumps it on every publish.
secrets: Vec<UserSecret>User-facing secret entries. Same wire shape as
Secret::secrets.
description: Option<String>Optional human-readable label for this version, forwarded to
helpers in StoreShareRequest.description.
replicas: Option<Replicas>Owner-side cached replica composite for this version, populated
after the VSS split completes. Lets the Owner resume future
ProtectSecret rounds without re-deriving share material, and
surfaces under Secret::replicas on the next snapshot rebuild.
None when this secret_id has no replica setup (or before
the first sharing round commits).
Trait Implementations§
Source§impl Clone for UserSecrets
impl Clone for UserSecrets
Source§fn clone(&self) -> UserSecrets
fn clone(&self) -> UserSecrets
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 UserSecrets
impl Debug for UserSecrets
Source§impl PartialEq for UserSecrets
impl PartialEq for UserSecrets
impl StructuralPartialEq for UserSecrets
Auto Trait Implementations§
impl Freeze for UserSecrets
impl RefUnwindSafe for UserSecrets
impl Send for UserSecrets
impl Sync for UserSecrets
impl Unpin for UserSecrets
impl UnsafeUnpin for UserSecrets
impl UnwindSafe for UserSecrets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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