pub enum PsbtCmd<S: Args> {
New {
value: u64,
address: Address<NetworkUnchecked>,
after: Option<u32>,
older: Option<u32>,
coin_select: CoinSelectionAlgo,
debug: bool,
},
Sign {
psbt: Option<String>,
descriptor: Option<String>,
},
Extract {
psbt: String,
try_broadcast: bool,
chain_specific: S,
},
}
Variants§
New
Create a new PSBT.
Fields
§
address: Address<NetworkUnchecked>
Recipient address
§
coin_select: CoinSelectionAlgo
Coin selection algorithm
Sign
Sign with a hot signer
Extract
Extract transaction
Trait Implementations§
Source§impl<S: Args> FromArgMatches for PsbtCmd<S>
impl<S: Args> FromArgMatches for PsbtCmd<S>
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl<S: Args> Subcommand for PsbtCmd<S>
impl<S: Args> Subcommand for PsbtCmd<S>
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl<S> Freeze for PsbtCmd<S>where
S: Freeze,
impl<S> RefUnwindSafe for PsbtCmd<S>where
S: RefUnwindSafe,
impl<S> Send for PsbtCmd<S>where
S: Send,
impl<S> Sync for PsbtCmd<S>where
S: Sync,
impl<S> Unpin for PsbtCmd<S>where
S: Unpin,
impl<S> UnwindSafe for PsbtCmd<S>where
S: UnwindSafe,
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