[][src]Struct firma::common::cmd::Context

pub struct Context {
    pub network: Network,
    pub wallet_name: String,
    pub firma_datadir: String,
}

Fields

network: Network

Network (bitcoin, testnet, regtest)

wallet_name: String

Name of the wallet

firma_datadir: String

Directory where wallet info are saved

Implementations

impl Context[src]

pub fn path_for_qr(&self, kind: Kind, name: Option<String>) -> Result<PathBuf>[src]

pub fn path_for_wallet_qr(&self) -> Result<PathBuf>[src]

pub fn filename_for_wallet(&self, name: &str) -> Result<PathBuf>[src]

pub fn psbts_dir(&self) -> Result<PathBuf>[src]

pub fn save_wallet(&self, wallet: &WalletJson) -> Result<PathBuf>[src]

pub fn save_signature(&self, wallet: &WalletSignature) -> Result<PathBuf>[src]

pub fn save_index(&self, indexes: &WalletIndexes) -> Result<()>[src]

pub fn save_daemon_opts(&self, daemon_opts: &DaemonOpts) -> Result<()>[src]

pub fn decrease_index(&self) -> Result<()>[src]

pub fn load_wallet_index_daemon(
    &self
) -> Result<(WalletJson, WalletIndexes, DaemonOpts)>
[src]

load the wallet and related indexes and daemon opts

Trait Implementations

impl Clone for Context[src]

impl Debug for Context[src]

impl StructOpt for Context[src]

impl StructOptInternal for Context[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,