pub struct ConfigOpts {
pub ark: Option<String>,
pub access_token: Option<String>,
pub esplora: Option<String>,
pub bitcoind: Option<String>,
pub bitcoind_cookie: Option<String>,
pub bitcoind_user: Option<String>,
pub bitcoind_pass: Option<String>,
pub socks5_proxy: Option<String>,
}Expand description
Options to define the initial bark config
Fields§
§ark: Option<String>The address of your Ark server.
access_token: Option<String>The access token for a private server
esplora: Option<String>The address of the Esplora HTTP server to use.
Either this or the bitcoind_address field has to be provided.
bitcoind: Option<String>The address of the bitcoind RPC server to use.
Either this or the esplora_address field has to be provided.
The path to the bitcoind rpc cookie file.
Only used with bitcoind_address.
bitcoind_user: Option<String>The bitcoind RPC username.
Only used with bitcoind_address.
bitcoind_pass: Option<String>The bitcoind RPC password.
Only used with bitcoind_address.
socks5_proxy: Option<String>SOCKS5 proxy URL (e.g. socks5h://127.0.0.1:9050 for Tor). Automatically bypassed for localhost connections.
Trait Implementations§
Source§impl Args for ConfigOpts
impl Args for ConfigOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ConfigOpts
impl Clone for ConfigOpts
Source§fn clone(&self) -> ConfigOpts
fn clone(&self) -> ConfigOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ConfigOpts
impl Default for ConfigOpts
Source§fn default() -> ConfigOpts
fn default() -> ConfigOpts
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ConfigOpts
impl FromArgMatches for ConfigOpts
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl PartialEq for ConfigOpts
impl PartialEq for ConfigOpts
Source§fn eq(&self, other: &ConfigOpts) -> bool
fn eq(&self, other: &ConfigOpts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfigOpts
impl StructuralPartialEq for ConfigOpts
Auto Trait Implementations§
impl Freeze for ConfigOpts
impl RefUnwindSafe for ConfigOpts
impl Send for ConfigOpts
impl Sync for ConfigOpts
impl Unpin for ConfigOpts
impl UnsafeUnpin for ConfigOpts
impl UnwindSafe for ConfigOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request