pub struct UserKeyExportResult {
pub recovery_phrase: String,
pub user_id: String,
}Expand description
Result of Request::UserKeyExport (#85 ask 2).
recovery_phrase is the private key. Show it to the person who owns it, once, and do not
persist it anywhere your application would not persist the key file itself.
Fields§
§recovery_phrase: String33 words. Write them down in order.
user_id: StringThe b64u: identity this phrase restores — safe to display and to record, unlike the
phrase. Compare it after an import to confirm the right identity came back.
Trait Implementations§
Source§impl Clone for UserKeyExportResult
impl Clone for UserKeyExportResult
Source§fn clone(&self) -> UserKeyExportResult
fn clone(&self) -> UserKeyExportResult
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 UserKeyExportResult
REDACTING Debug — see UserKeyImportParams. The user_id is safe and is kept, because a
{:?} with nothing in it is worse for debugging than one with the non-secret half.
impl Debug for UserKeyExportResult
REDACTING Debug — see UserKeyImportParams. The user_id is safe and is kept, because a
{:?} with nothing in it is worse for debugging than one with the non-secret half.
Source§impl Default for UserKeyExportResult
impl Default for UserKeyExportResult
Source§fn default() -> UserKeyExportResult
fn default() -> UserKeyExportResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserKeyExportResult
impl<'de> Deserialize<'de> for UserKeyExportResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserKeyExportResult
Source§impl PartialEq for UserKeyExportResult
impl PartialEq for UserKeyExportResult
Source§impl Serialize for UserKeyExportResult
impl Serialize for UserKeyExportResult
impl StructuralPartialEq for UserKeyExportResult
Auto Trait Implementations§
impl Freeze for UserKeyExportResult
impl RefUnwindSafe for UserKeyExportResult
impl Send for UserKeyExportResult
impl Sync for UserKeyExportResult
impl Unpin for UserKeyExportResult
impl UnsafeUnpin for UserKeyExportResult
impl UnwindSafe for UserKeyExportResult
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