Struct breez_sdk_core::Config
source · pub struct Config {
pub breezserver: String,
pub chainnotifier_url: String,
pub mempoolspace_url: Option<String>,
pub working_dir: String,
pub network: Network,
pub payment_timeout_sec: u32,
pub default_lsp_id: Option<String>,
pub api_key: Option<String>,
pub maxfee_percent: f64,
pub exemptfee_msat: u64,
pub node_config: NodeConfig,
}
Expand description
Configuration for the Breez Services
Use Config::production or Config::staging for default configs of the different supported environments.
Fields§
§breezserver: String
§chainnotifier_url: String
§mempoolspace_url: Option<String>
If set, this is the mempool.space URL that will be used.
If not set, a list of mempool.space URLs will be used to provide fault-tolerance. If calls to the first URL fail, then the call will be repeated to the next URL, and so on.
Note that, if specified, the URL has to be in the format: https://mempool.space/api
working_dir: String
Directory in which all SDK files (DB, log) are stored. Defaults to “.”, otherwise if it’s customized, the folder should exist before starting the SDK.
network: Network
§payment_timeout_sec: u32
§default_lsp_id: Option<String>
§api_key: Option<String>
§maxfee_percent: f64
Maps to the CLN maxfeepercent
config when paying invoices (lightning-pay
)
exemptfee_msat: u64
Maps to the CLN exemptfee
config when paying invoices (lightning-pay
)
node_config: NodeConfig
Implementations§
source§impl Config
impl Config
pub fn production(api_key: String, node_config: NodeConfig) -> Self
pub fn staging(api_key: String, node_config: NodeConfig) -> Self
Trait Implementations§
impl IntoDartExceptPrimitive for Config
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<T> AnySync for T
impl<T> AnySync for T
§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
Mutably borrows from an owned value. Read more
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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