deriv_api_schema/
payment_method_item.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/payment_methods/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7use serde_json::Value;
8
9
10
11// Import shared types from the *same* crate
12
13// It's a struct
14/// A payment method suported for the given country
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct PaymentMethodItem {
18    /// The min and max values for deposits.\n
19    // Correct serde attribute construction - Use helper
20    
21    pub deposit_limits: String,
22    /// How much time it takes for a deposit to be processed.\n
23    // Correct serde attribute construction - Use helper
24    
25    pub deposit_time: String,
26    /// Short description explaining the payment method.\n
27    // Correct serde attribute construction - Use helper
28    
29    pub description: String,
30    /// Common name for the payment method.\n
31    // Correct serde attribute construction - Use helper
32    
33    pub display_name: String,
34    /// Unique identifier for the payment method.\n
35    // Correct serde attribute construction - Use helper
36    
37    pub id: String,
38    /// Payment processor for this payment method.\n
39    // Correct serde attribute construction - Use helper
40    
41    pub payment_processor: String,
42    /// A list of predefined amounts for withdraw or deposit.\n
43    // Correct serde attribute construction - Use helper
44    
45    pub predefined_amounts: String,
46    /// Sign up link for this payment method.\n
47    // Correct serde attribute construction - Use helper
48    
49    pub signup_link: String,
50    /// Currencies supported for this payment method.\n
51    // Correct serde attribute construction - Use helper
52    
53    pub supported_currencies: Vec<String>,
54    /// Type of Payment Method.\n
55    // Correct serde attribute construction - Use helper
56    #[serde(rename = "type")] 
57    pub type_: String,
58    /// A printable description for type of payment method.\n
59    // Correct serde attribute construction - Use helper
60    
61    pub type_display_name: String,
62    /// Withdrawal limits per currency.\n
63    // Correct serde attribute construction - Use helper
64    
65    pub withdraw_limits: Value,
66    /// How much time takes a withdrawal to be processed.\n
67    // Correct serde attribute construction - Use helper
68    
69    pub withdrawal_time: String,
70}
71