pub struct DumpPrivKey(pub String);
Expand description
Result of the JSON-RPC method dumpprivkey
.
dumpprivkey “address”
Reveals the private key corresponding to ‘address’. Then the importprivkey can be used with this output
Arguments:
- “address” (string, required) The bitcoin address for the private key
Tuple Fields§
§0: String
Implementations§
Source§impl DumpPrivKey
impl DumpPrivKey
Sourcepub fn into_model(self) -> Result<DumpPrivKey, FromWifError>
pub fn into_model(self) -> Result<DumpPrivKey, FromWifError>
Converts version specific type to a version nonspecific, more strongly typed type.
Source§impl DumpPrivKey
impl DumpPrivKey
Sourcepub fn key(self) -> Result<PrivateKey, FromWifError>
pub fn key(self) -> Result<PrivateKey, FromWifError>
Returns the dumped key.
Trait Implementations§
Source§impl Clone for DumpPrivKey
impl Clone for DumpPrivKey
Source§fn clone(&self) -> DumpPrivKey
fn clone(&self) -> DumpPrivKey
Returns a copy of the value. Read more
1.0.0 · 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 DumpPrivKey
impl Debug for DumpPrivKey
Source§impl<'de> Deserialize<'de> for DumpPrivKey
impl<'de> Deserialize<'de> for DumpPrivKey
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
Source§impl PartialEq for DumpPrivKey
impl PartialEq for DumpPrivKey
Source§impl Serialize for DumpPrivKey
impl Serialize for DumpPrivKey
impl Eq for DumpPrivKey
impl StructuralPartialEq for DumpPrivKey
Auto Trait Implementations§
impl Freeze for DumpPrivKey
impl RefUnwindSafe for DumpPrivKey
impl Send for DumpPrivKey
impl Sync for DumpPrivKey
impl Unpin for DumpPrivKey
impl UnwindSafe for DumpPrivKey
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