pub struct WalletConfig {
Show 14 fields pub chain_type: Option<ChainTypes>, pub api_listen_interface: String, pub api_listen_port: u16, pub owner_api_listen_port: Option<u16>, pub api_secret_path: Option<String>, pub node_api_secret_path: Option<String>, pub check_node_api_http_addr: String, pub owner_api_include_foreign: Option<bool>, pub data_file_dir: String, pub no_commit_cache: Option<bool>, pub tls_certificate_file: Option<String>, pub tls_certificate_key: Option<String>, pub dark_background_color_scheme: Option<bool>, pub keybase_notify_ttl: Option<u16>,
}
Expand description

Command-line wallet configuration

Fields

chain_type: Option<ChainTypes>

Chain parameters (default to Mainnet if none at the moment)

api_listen_interface: String

The api interface/ip_address that this api server (i.e. this wallet) will run by default this is 127.0.0.1 (and will not accept connections from external clients)

api_listen_port: u16

The port this wallet will run on

owner_api_listen_port: Option<u16>

The port this wallet’s owner API will run on

api_secret_path: Option<String>

Location of the secret for basic auth on the Owner API

node_api_secret_path: Option<String>

Location of the node api secret for basic auth on the Epic API

check_node_api_http_addr: String

The api address of a running server node against which transaction inputs will be checked during send

owner_api_include_foreign: Option<bool>

Whether to include foreign API endpoints on the Owner API

data_file_dir: String

The directory in which wallet files are stored

no_commit_cache: Option<bool>

If Some(true), don’t cache commits alongside output data speed improvement, but your commits are in the database

tls_certificate_file: Option<String>

TLS certificate file

tls_certificate_key: Option<String>

TLS certificate private key file

dark_background_color_scheme: Option<bool>

Whether to use the black background color scheme for command line if enabled, wallet command output color will be suitable for black background terminal

keybase_notify_ttl: Option<u16>

The exploding lifetime (minutes) for keybase notification on coins received

Implementations

API Listen address

Default listener port

Use value from config file, defaulting to sensible value if missing.

Owner API listen address

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Clone this value, and then immediately put it into a Box behind a trait object of this trait. Read more

Returns the address of self. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Clone this value, and then immediately put it into a Box behind a trait object of this trait. Read more

Returns the address of self. Read more

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.