Struct uniffi_lipalightninglib::Config
source · pub struct Config {
pub seed: Vec<u8>,
pub 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,
}
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
fiat_currency: String
ISO 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.
local_persistence_path: String
A 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: TzConfig
A 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
Trait Implementations§
Auto Trait Implementations§
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
§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