pub struct UserKeyImportParams {
pub recovery_phrase: String,
pub replace: bool,
}Expand description
Params of Request::UserKeyImport (#85 ask 2).
Fields§
§recovery_phrase: StringThe recovery phrase, as written down. Whitespace and case are forgiven; a wrong word, the wrong count, or a failed checksum are refused by position rather than guessed at.
replace: boolReplace an EXISTING user key. Defaults to false, and the refusal is the point: importing
over a live key discards the identity this node currently presents, which is irreversible
without that key’s own phrase.
Trait Implementations§
Source§impl Clone for UserKeyImportParams
impl Clone for UserKeyImportParams
Source§fn clone(&self) -> UserKeyImportParams
fn clone(&self) -> UserKeyImportParams
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 UserKeyImportParams
REDACTING Debug — the phrase is a private key, and a derived one would put it in any
tracing::debug!(?params) a future change adds to the dispatch, or in an embedder’s dbg!.
Three lines to make that leak unrepresentable rather than merely absent today.
impl Debug for UserKeyImportParams
REDACTING Debug — the phrase is a private key, and a derived one would put it in any
tracing::debug!(?params) a future change adds to the dispatch, or in an embedder’s dbg!.
Three lines to make that leak unrepresentable rather than merely absent today.
Source§impl<'de> Deserialize<'de> for UserKeyImportParams
impl<'de> Deserialize<'de> for UserKeyImportParams
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 UserKeyImportParams
Source§impl PartialEq for UserKeyImportParams
impl PartialEq for UserKeyImportParams
Source§impl Serialize for UserKeyImportParams
impl Serialize for UserKeyImportParams
impl StructuralPartialEq for UserKeyImportParams
Auto Trait Implementations§
impl Freeze for UserKeyImportParams
impl RefUnwindSafe for UserKeyImportParams
impl Send for UserKeyImportParams
impl Sync for UserKeyImportParams
impl Unpin for UserKeyImportParams
impl UnsafeUnpin for UserKeyImportParams
impl UnwindSafe for UserKeyImportParams
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