pub struct GenericStoreRoutingConfig {
pub selection_strategy: SelectionStrategy,
pub fairness_enabled: bool,
pub cashu_payment_weight: f64,
pub cashu_payment_default_block_threshold: u64,
pub cashu_accepted_mints: Vec<String>,
pub cashu_default_mint: Option<String>,
pub cashu_peer_suggested_mint_base_cap_sat: u64,
pub cashu_peer_suggested_mint_success_step_sat: u64,
pub cashu_peer_suggested_mint_receipt_step_sat: u64,
pub cashu_peer_suggested_mint_max_cap_sat: u64,
pub dispatch: RequestDispatchConfig,
pub response_behavior: ResponseBehaviorConfig,
}Expand description
Routing policy for request ordering + dispatch fanout.
Fields§
§selection_strategy: SelectionStrategy§fairness_enabled: bool§cashu_payment_weight: f64Blend weight for payment-priority ranking in selector (0.0 disables).
cashu_payment_default_block_threshold: u64Refuse serving peers that have reached this many unpaid post-delivery settlements.
0 disables refusal and only keeps metadata/downranking.
cashu_accepted_mints: Vec<String>Cashu mint URLs this node is willing to use for settlement.
cashu_default_mint: Option<String>Preferred Cashu mint URL when initiating paid retrieval.
cashu_peer_suggested_mint_base_cap_sat: u64Baseline cap for accepting a peer-suggested mint outside the trusted set.
cashu_peer_suggested_mint_success_step_sat: u64Additional sats allowed per successful delivery from that peer.
cashu_peer_suggested_mint_receipt_step_sat: u64Additional sats allowed per successful post-delivery payment received from that peer.
cashu_peer_suggested_mint_max_cap_sat: u64Hard upper bound for any single peer-suggested mint quote we accept.
dispatch: RequestDispatchConfig§response_behavior: ResponseBehaviorConfigTrait Implementations§
Source§impl Clone for GenericStoreRoutingConfig
impl Clone for GenericStoreRoutingConfig
Source§fn clone(&self) -> GenericStoreRoutingConfig
fn clone(&self) -> GenericStoreRoutingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericStoreRoutingConfig
impl Debug for GenericStoreRoutingConfig
Auto Trait Implementations§
impl Freeze for GenericStoreRoutingConfig
impl RefUnwindSafe for GenericStoreRoutingConfig
impl Send for GenericStoreRoutingConfig
impl Sync for GenericStoreRoutingConfig
impl Unpin for GenericStoreRoutingConfig
impl UnsafeUnpin for GenericStoreRoutingConfig
impl UnwindSafe for GenericStoreRoutingConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§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
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>
Converts
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>
Converts
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