Skip to main content

ProviderConfig

Trait ProviderConfig 

Source
pub trait ProviderConfig: Send + Sync {
    // Required method
    fn validate(&self) -> Result<(), PaymentError>;
}
Expand description

支付渠道配置的基础 trait

各渠道实现此 trait 以提供配置验证能力。

Send + Sync bound 确保 trait object (dyn ProviderConfig) 安全使用。

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§