pub struct CashuConfig {
pub accepted_mints: Vec<String>,
pub default_mint: Option<String>,
pub quote_payment_offer_sat: u64,
pub quote_ttl_ms: u32,
pub settlement_timeout_ms: u64,
pub mint_failure_block_threshold: u64,
pub peer_suggested_mint_base_cap_sat: u64,
pub peer_suggested_mint_success_step_sat: u64,
pub peer_suggested_mint_receipt_step_sat: u64,
pub peer_suggested_mint_max_cap_sat: u64,
pub payment_default_block_threshold: u64,
pub chunk_target_bytes: usize,
}Fields§
§accepted_mints: Vec<String>Cashu mint base URLs we accept for bandwidth incentives.
default_mint: Option<String>Default mint to use for wallet operations.
quote_payment_offer_sat: u64Default post-delivery payment offer for quoted retrievals.
quote_ttl_ms: u32Quote validity window in milliseconds.
settlement_timeout_ms: u64Maximum time to wait for post-delivery settlement before recording a default.
mint_failure_block_threshold: u64Block mints whose failed redemptions keep outnumbering successful redemptions.
peer_suggested_mint_base_cap_sat: u64Base cap for trying a peer-suggested mint we do not already trust.
peer_suggested_mint_success_step_sat: u64Additional cap granted per successful delivery from that peer.
peer_suggested_mint_receipt_step_sat: u64Additional cap granted per settled payment received from that peer.
peer_suggested_mint_max_cap_sat: u64Hard ceiling for untrusted peer-suggested mint exposure.
payment_default_block_threshold: u64Block serving peers whose unpaid defaults reach this threshold.
chunk_target_bytes: usizeTarget chunk size for quoted paid delivery.
Trait Implementations§
Source§impl Clone for CashuConfig
impl Clone for CashuConfig
Source§fn clone(&self) -> CashuConfig
fn clone(&self) -> CashuConfig
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 CashuConfig
impl Debug for CashuConfig
Source§impl Default for CashuConfig
impl Default for CashuConfig
Source§impl<'de> Deserialize<'de> for CashuConfig
impl<'de> Deserialize<'de> for CashuConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CashuConfig> for CashuRoutingConfig
impl From<&CashuConfig> for CashuRoutingConfig
Source§fn from(config: &CashuConfig) -> Self
fn from(config: &CashuConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CashuConfig
impl RefUnwindSafe for CashuConfig
impl Send for CashuConfig
impl Sync for CashuConfig
impl Unpin for CashuConfig
impl UnsafeUnpin for CashuConfig
impl UnwindSafe for CashuConfig
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