pub struct PaymentConfig {
pub cache_capacity: usize,
pub rewards_address: Option<String>,
pub evm_network: EvmNetworkConfig,
pub metrics_port: u16,
}Expand description
Payment verification configuration.
All new data requires EVM payment on Arbitrum — there is no way to disable payment verification. The cache stores previously verified payments to avoid redundant on-chain lookups.
Fields§
§cache_capacity: usizeCache capacity for verified XorNames.
rewards_address: Option<String>EVM wallet address for receiving payments (e.g., “0x…”). If not set, the node will not be able to receive payments.
evm_network: EvmNetworkConfigEVM network for payment processing.
metrics_port: u16Metrics port for Prometheus scraping. Set to 0 to disable metrics endpoint.
Trait Implementations§
Source§impl Clone for PaymentConfig
impl Clone for PaymentConfig
Source§fn clone(&self) -> PaymentConfig
fn clone(&self) -> PaymentConfig
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 PaymentConfig
impl Debug for PaymentConfig
Source§impl Default for PaymentConfig
impl Default for PaymentConfig
Source§impl<'de> Deserialize<'de> for PaymentConfig
impl<'de> Deserialize<'de> for PaymentConfig
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
Auto Trait Implementations§
impl Freeze for PaymentConfig
impl RefUnwindSafe for PaymentConfig
impl Send for PaymentConfig
impl Sync for PaymentConfig
impl Unpin for PaymentConfig
impl UnsafeUnpin for PaymentConfig
impl UnwindSafe for PaymentConfig
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
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