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>,
pub gap_limit: Option<u32>,
}Expand description
Options to define the initial bark config
Fields§
§ark: Option<String>The address of your Ark server.
access_token: Option<String>[DEPRECATED] The access token for a private server. Access tokens are no longer enforced by the server; this flag will be removed.
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.
gap_limit: Option<u32>How many consecutive unused key indices a VTXO key scan may cross before it concludes the wallet doesn’t own a recovered/imported VTXO.
Implementations§
Source§impl ConfigOpts
impl ConfigOpts
Sourcepub fn fill_network_defaults(&mut self, net: BarkNetwork)
pub fn fill_network_defaults(&mut self, net: BarkNetwork)
Fill the default required config fields based on network
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ConfigOpts
impl Clone for ConfigOpts
Source§impl Default for ConfigOpts
impl Default for ConfigOpts
impl Eq for ConfigOpts
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>
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>
ArgMatches to self.Source§impl PartialEq for ConfigOpts
impl PartialEq 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
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
key and return true if they are equal.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
self with key and returns 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>
T in a tonic::Request