Struct stack_test_epic_wallet_config::types::WalletConfig
source · [−]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
sourceimpl WalletConfig
impl WalletConfig
sourcepub fn api_listen_addr(&self) -> String
pub fn api_listen_addr(&self) -> String
API Listen address
sourcepub fn default_owner_api_listen_port() -> u16
pub fn default_owner_api_listen_port() -> u16
Default listener port
sourcepub fn owner_api_listen_port(&self) -> u16
pub fn owner_api_listen_port(&self) -> u16
Use value from config file, defaulting to sensible value if missing.
sourcepub fn owner_api_listen_addr(&self) -> String
pub fn owner_api_listen_addr(&self) -> String
Owner API listen address
Trait Implementations
sourceimpl Clone for WalletConfig
impl Clone for WalletConfig
sourcefn clone(&self) -> WalletConfig
fn clone(&self) -> WalletConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WalletConfig
impl Debug for WalletConfig
sourceimpl Default for WalletConfig
impl Default for WalletConfig
sourcefn default() -> WalletConfig
fn default() -> WalletConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WalletConfig
impl<'de> Deserialize<'de> for WalletConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WalletConfig> for WalletConfig
impl PartialEq<WalletConfig> for WalletConfig
sourcefn eq(&self, other: &WalletConfig) -> bool
fn eq(&self, other: &WalletConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WalletConfig) -> bool
fn ne(&self, other: &WalletConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for WalletConfig
impl Serialize for WalletConfig
impl StructuralPartialEq for WalletConfig
Auto Trait Implementations
impl RefUnwindSafe for WalletConfig
impl Send for WalletConfig
impl Sync for WalletConfig
impl Unpin for WalletConfig
impl UnwindSafe for WalletConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global> where
T: Send + Sync,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
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