pub struct PaymentMethod {
pub id: String,
pub payment_type: String,
pub name: String,
pub currency: String,
pub verified: bool,
pub allow_buy: bool,
pub allow_sell: bool,
pub allow_deposit: bool,
pub allow_withdraw: bool,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
A payment method available to the user.
Fields§
§id: StringUnique identifier for the payment method.
payment_type: StringThe payment method type.
name: StringName for the payment method.
currency: StringCurrency symbol for the payment method.
verified: boolThe verified status of the payment method.
allow_buy: boolWhether this payment method can perform buys.
allow_sell: boolWhether this payment method can perform sells.
allow_deposit: boolWhether this payment method can perform deposits.
allow_withdraw: boolWhether this payment method can perform withdrawals.
created_at: Option<String>Time at which this payment method was created.
updated_at: Option<String>Time at which this payment method was updated.
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§fn clone(&self) -> PaymentMethod
fn clone(&self) -> PaymentMethod
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 PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
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 PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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