pub struct PaymentConfig {
pub providers: Vec<String>,
pub auto_approve_threshold: u64,
pub require_approval_threshold: u64,
}Expand description
Payment provider and policy configuration.
Fields§
§providers: Vec<String>Enabled payment providers (e.g. [“stripe”, “mpesa”]).
auto_approve_threshold: u64Auto-approve threshold in smallest currency unit.
require_approval_threshold: u64Require owner approval above this threshold.
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 (const: unstable) · 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<'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
Source§impl PartialEq for PaymentConfig
impl PartialEq for PaymentConfig
Source§fn eq(&self, other: &PaymentConfig) -> bool
fn eq(&self, other: &PaymentConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentConfig
impl Serialize for PaymentConfig
impl StructuralPartialEq for PaymentConfig
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