pub struct LSPS2ServiceConfig {
pub require_token: Option<String>,
pub advertise_service: bool,
pub channel_opening_fee_ppm: u32,
pub channel_over_provisioning_ppm: u32,
pub min_channel_opening_fee_msat: u64,
pub min_channel_lifetime: u32,
pub max_client_to_self_delay: u32,
pub min_payment_size_msat: u64,
pub max_payment_size_msat: u64,
}
Expand description
Represents the configuration of the LSPS2 service.
See bLIP-52 / LSPS2 for more information.
Fields§
§require_token: Option<String>
A token we may require to be sent by the clients.
If set, only requests matching this token will be accepted.
advertise_service: bool
Indicates whether the LSPS service will be announced via the gossip network.
channel_opening_fee_ppm: u32
The fee we withhold for the channel open from the initial payment.
This fee is proportional to the client-requested amount, in parts-per-million.
channel_over_provisioning_ppm: u32
The proportional overprovisioning for the channel.
This determines, in parts-per-million, how much value we’ll provision on top of the amount we need to forward the payment to the client.
For example, setting this to 100_000
will result in a channel being opened that is 10%
larger than then the to-be-forwarded amount (i.e., client-requested amount minus the
channel opening fee fee).
min_channel_opening_fee_msat: u64
The minimum fee required for opening a channel.
min_channel_lifetime: u32
The minimum number of blocks after confirmation we promise to keep the channel open.
max_client_to_self_delay: u32
The maximum number of blocks that the client is allowed to set its to_self_delay
parameter.
min_payment_size_msat: u64
The minimum payment size that we will accept when opening a channel.
max_payment_size_msat: u64
The maximum payment size that we will accept when opening a channel.
Trait Implementations§
Source§impl Clone for LSPS2ServiceConfig
impl Clone for LSPS2ServiceConfig
Source§fn clone(&self) -> LSPS2ServiceConfig
fn clone(&self) -> LSPS2ServiceConfig
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 LSPS2ServiceConfig
impl RefUnwindSafe for LSPS2ServiceConfig
impl Send for LSPS2ServiceConfig
impl Sync for LSPS2ServiceConfig
impl Unpin for LSPS2ServiceConfig
impl UnwindSafe for LSPS2ServiceConfig
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<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> 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 more