Struct bitcoincore_rpc_json::ImportMultiRequest
source · pub struct ImportMultiRequest<'a> {
pub timestamp: Timestamp,
pub descriptor: Option<&'a str>,
pub script_pubkey: Option<ImportMultiRequestScriptPubkey<'a>>,
pub redeem_script: Option<&'a Script>,
pub witness_script: Option<&'a Script>,
pub pubkeys: &'a [PublicKey],
pub keys: &'a [PrivateKey],
pub range: Option<(usize, usize)>,
pub internal: Option<bool>,
pub watchonly: Option<bool>,
pub label: Option<&'a str>,
pub keypool: Option<bool>,
}
Expand description
A import request for importmulti.
Note: unlike in bitcoind, timestamp
defaults to 0.
Fields§
§timestamp: Timestamp
§descriptor: Option<&'a str>
If using descriptor, do not also provide address/scriptPubKey, scripts, or pubkeys.
script_pubkey: Option<ImportMultiRequestScriptPubkey<'a>>
§redeem_script: Option<&'a Script>
§witness_script: Option<&'a Script>
§pubkeys: &'a [PublicKey]
§keys: &'a [PrivateKey]
§range: Option<(usize, usize)>
§internal: Option<bool>
§watchonly: Option<bool>
§label: Option<&'a str>
§keypool: Option<bool>
Trait Implementations§
source§impl<'a> Clone for ImportMultiRequest<'a>
impl<'a> Clone for ImportMultiRequest<'a>
source§fn clone(&self) -> ImportMultiRequest<'a>
fn clone(&self) -> ImportMultiRequest<'a>
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<'a> Debug for ImportMultiRequest<'a>
impl<'a> Debug for ImportMultiRequest<'a>
source§impl<'a> Default for ImportMultiRequest<'a>
impl<'a> Default for ImportMultiRequest<'a>
source§fn default() -> ImportMultiRequest<'a>
fn default() -> ImportMultiRequest<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq for ImportMultiRequest<'a>
impl<'a> PartialEq for ImportMultiRequest<'a>
source§fn eq(&self, other: &ImportMultiRequest<'a>) -> bool
fn eq(&self, other: &ImportMultiRequest<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for ImportMultiRequest<'a>
impl<'a> Serialize for ImportMultiRequest<'a>
impl<'a> Eq for ImportMultiRequest<'a>
impl<'a> StructuralPartialEq for ImportMultiRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImportMultiRequest<'a>
impl<'a> RefUnwindSafe for ImportMultiRequest<'a>
impl<'a> Send for ImportMultiRequest<'a>
impl<'a> Sync for ImportMultiRequest<'a>
impl<'a> Unpin for ImportMultiRequest<'a>
impl<'a> UnwindSafe for ImportMultiRequest<'a>
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