Struct electrsd::Conf[][src]

pub struct Conf<'a> {
    pub args: Vec<&'a str>,
    pub view_stderr: bool,
    pub http_enabled: bool,
    pub network: &'a str,
}
Expand description

Electrs configuration parameters, implements a convenient Default for most common use.

Default values:

electrsd::Conf {
    args: vec!["-vvv", "--txid-limit=0"],
    view_stderr: false,
    http_enabled: false,
    network: "regtest",
};

Fields

args: Vec<&'a str>

Electrsd command line arguments note that db-dir, cookie, cookie-file, daemon-rpc-addr, jsonrpc-import, electrum-rpc-addr, monitoring-addr, http-addr cannot be used cause they are automatically initialized.

view_stderr: bool

if true electrsd log output will not be suppressed

http_enabled: bool

if true electrsd exposes an esplora endpoint

network: &'a str

Must match bitcoind network

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.