pub struct Config {
pub api_key: Option<String>,
pub network: Network,
pub sync_interval_secs: u32,
pub max_deposit_claim_fee: Option<Fee>,
pub lnurl_domain: Option<String>,
pub prefer_spark_over_lightning: bool,
pub external_input_parsers: Option<Vec<ExternalInputParser>>,
pub use_default_external_input_parsers: bool,
pub real_time_sync_server_url: Option<String>,
pub private_enabled_default: bool,
}Fields§
§api_key: Option<String>§network: Network§sync_interval_secs: u32§max_deposit_claim_fee: Option<Fee>§lnurl_domain: Option<String>The domain used for receiving through lnurl-pay and lightning address.
prefer_spark_over_lightning: boolWhen this is set to true we will prefer to use spark payments over
lightning when sending and receiving. This has the benefit of lower fees
but is at the cost of privacy.
external_input_parsers: Option<Vec<ExternalInputParser>>A set of external input parsers that are used by BreezSdk::parse when the input
is not recognized. See ExternalInputParser for more details on how to configure
external parsing.
use_default_external_input_parsers: boolThe SDK includes some default external input parsers
(DEFAULT_EXTERNAL_INPUT_PARSERS).
Set this to false in order to prevent their use.
real_time_sync_server_url: Option<String>Url to use for the real-time sync server. Defaults to the Breez real-time sync server.
private_enabled_default: boolWhether the Spark private mode is enabled by default.
If set to true, the Spark private mode will be enabled on the first initialization of the SDK. If set to false, no changes will be made to the Spark private mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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