pub struct CreateOpts {
pub force: bool,
pub use_filestore: bool,
pub mainnet: bool,
pub regtest: bool,
pub signet: bool,
pub mutinynet: bool,
pub mnemonic: Option<Mnemonic>,
pub birthday_height: Option<BlockHeight>,
pub config: ConfigOpts,
}Fields§
§force: boolForce re-create the wallet even if it already exists. Any funds in the old wallet will be lost
use_filestore: boolUse filestore (JSON file) persistence instead of SQLite. This creates a marker file so subsequent commands use the same backend.
Warning: do not use this for a production wallet.
mainnet: boolUse bitcoin mainnet
regtest: boolUse regtest network
signet: boolUse the official signet network
mutinynet: boolUse mutinynet
mnemonic: Option<Mnemonic>Recover a wallet with an existing mnemonic. This currently only works for on-chain funds.
birthday_height: Option<BlockHeight>The wallet/mnemonic’s birthday blockheight to start syncing when recovering.
config: ConfigOptsTrait Implementations§
Source§impl Args for CreateOpts
impl Args for CreateOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for CreateOpts
impl FromArgMatches for CreateOpts
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CreateOpts
impl RefUnwindSafe for CreateOpts
impl Send for CreateOpts
impl Sync for CreateOpts
impl Unpin for CreateOpts
impl UnsafeUnpin for CreateOpts
impl UnwindSafe for CreateOpts
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request