bybit/models/withdrawal_address_response.rs
1use crate::prelude::*;
2
3/// Response for querying withdrawal addresses
4#[derive(Debug, Serialize, Deserialize, Clone)]
5pub struct WithdrawalAddressResponse {
6 /// List of withdrawal addresses
7 pub rows: Vec<WithdrawalAddress>,
8
9 /// Cursor. Used for pagination
10 #[serde(rename = "nextPageCursor")]
11 pub next_page_cursor: Option<String>,
12}
13
14/// Withdrawal address information
15#[derive(Debug, Serialize, Deserialize, Clone)]
16pub struct WithdrawalAddress {
17 /// Coin
18 pub coin: String,
19
20 /// Chain name
21 pub chain: String,
22
23 /// Address
24 pub address: String,
25
26 /// Address tag
27 pub tag: String,
28
29 /// Remark
30 pub remark: String,
31
32 /// Address status:
33 /// `0`: Normal.
34 /// `1`: New Addresses are prohibited from withdrawing coins for 24 Hours.
35 pub status: i32,
36
37 /// Address type.
38 /// `0`: OnChain Address Type(Regular Address Type And Universal Address Type)
39 /// `1`: Internal Transfer Address Type.
40 /// `2`: Internal Transfer Address Type And OnChain Address Type
41 #[serde(rename = "addressType")]
42 pub address_type: i32,
43
44 /// Whether the address has been verified or not:
45 /// `0`: Unverified Address.
46 /// `1`: Verified Address.
47 pub verified: i32,
48
49 /// Address create time
50 #[serde(rename = "createdAt")]
51 pub created_at: String,
52}