pub struct LightningNodeConfig {
pub seed: Vec<u8>,
pub default_fiat_currency: String,
pub local_persistence_path: String,
pub timezone_config: TzConfig,
pub file_logging_level: Option<Level>,
pub phone_number_allowed_countries_iso_3166_1_alpha_2: Vec<String>,
pub remote_services_config: RemoteServicesConfig,
pub breez_sdk_config: BreezSdkConfig,
pub max_routing_fee_config: MaxRoutingFeeConfig,
pub receive_limits_config: ReceiveLimitsConfig,
pub topup_referral_code_max_length: u32,
}Expand description
An object that holds all configuration needed to start a LightningNode instance.
Fields§
§seed: Vec<u8>The seed derived from the mnemonic optionally including a pass phrase
default_fiat_currency: StringISO 4217 currency code. The backend does not support all of them, but supports at least USD and EUR, so it is safe to default to one of them. Providing an invalid code will result in missing fiat values for payments.
The provided value is used as a default. After the first time the node is started,
this config starts being ignored. Changing the fiat currency can be done using
crate::LightningNode::change_fiat_currency.
local_persistence_path: StringA path on the local filesystem where this library will directly persist data. Only the current instance of the app should have access to the provided directory. On app uninstall/deletion, the directory should be purged.
timezone_config: TzConfigA timezone configuration object.
file_logging_level: Option<Level>If a value is provided, logs using the provided level will be created in the provided
local_persistence_path.
phone_number_allowed_countries_iso_3166_1_alpha_2: Vec<String>The list of allowed countries for the use of phone numbers as identifiers.
remote_services_config: RemoteServicesConfig§breez_sdk_config: BreezSdkConfig§max_routing_fee_config: MaxRoutingFeeConfig§receive_limits_config: ReceiveLimitsConfig§topup_referral_code_max_length: u32Trait Implementations§
source§impl Clone for LightningNodeConfig
impl Clone for LightningNodeConfig
source§fn clone(&self) -> LightningNodeConfig
fn clone(&self) -> LightningNodeConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for LightningNodeConfig
impl RefUnwindSafe for LightningNodeConfig
impl Send for LightningNodeConfig
impl Sync for LightningNodeConfig
impl Unpin for LightningNodeConfig
impl UnwindSafe for LightningNodeConfig
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
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)
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,
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,
Any.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§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