pub struct RecoveryCodeInfo {
pub record: EntityId,
pub name: String,
pub key: VerifyingKey,
pub made_at: u64,
pub made_by: Option<EntityId>,
pub made_on: Option<String>,
pub revoked: bool,
pub holds_secrets: bool,
pub carried_by: Vec<String>,
pub to_update: Vec<String>,
pub replaced_by: Option<String>,
}Expand description
A recovery code of the person’s, as their personal space names it.
Fields§
§record: EntityIdThe code’s record in the personal space.
name: StringIts short name, printed beside the code, which tells one sheet of paper from another.
key: VerifyingKeyIts recovery key.
made_at: u64When it was made, in milliseconds since 1970, as the device that made it says.
made_by: Option<EntityId>The replica that made it: the one whose key signed its statement.
made_on: Option<String>The name of the device that made it.
revoked: boolWhether it was revoked: it is given no key made since, and brings no device back.
holds_secrets: boolWhether the replica that made it gave it a secrets key of the personal space that a replica which holds the secrets was given too, sealed to the secrets encryption key that it signed: whether it opens the secrets, as a recovery with it takes them.
carried_by: Vec<String>For a code that stands, the names of the person’s backups that carry it: whose last update, as its account in the personal space tells, wrote the personal space with the code named, and so the recovery file with the code’s entry.
to_update: Vec<String>For a code that stands, the names of the person’s backups still to update before they carry it, with which the code brings nothing back yet.
replaced_by: Option<String>For a code that stands and that a newer one replaces, the newer one’s name: it is revoked once every backup carries the newer one, as a backup not updated since opens with this one alone; until then its paper is to be kept.
Trait Implementations§
Source§impl Clone for RecoveryCodeInfo
impl Clone for RecoveryCodeInfo
Source§impl Debug for RecoveryCodeInfo
impl Debug for RecoveryCodeInfo
impl Eq for RecoveryCodeInfo
Source§impl PartialEq for RecoveryCodeInfo
impl PartialEq for RecoveryCodeInfo
impl StructuralPartialEq for RecoveryCodeInfo
Auto Trait Implementations§
impl Forget for RecoveryCodeInfo
impl Freeze for RecoveryCodeInfo
impl Move for RecoveryCodeInfo
impl RefUnwindSafe for RecoveryCodeInfo
impl Send for RecoveryCodeInfo
impl Sync for RecoveryCodeInfo
impl Unpin for RecoveryCodeInfo
impl UnsafeUnpin for RecoveryCodeInfo
impl UnwindSafe for RecoveryCodeInfo
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<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
key and return true if they are equal.