clerk_sdk_rust_community/models/
web3_wallet.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct Web3Wallet {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    /// String representing the object's type. Objects of the same type share the same value. 
19    #[serde(rename = "object")]
20    pub object: Object,
21    #[serde(rename = "web3_wallet")]
22    pub web3_wallet: String,
23    #[serde(rename = "verification", deserialize_with = "Option::deserialize")]
24    pub verification: Option<Box<crate::models::Web3WalletVerification>>,
25}
26
27impl Web3Wallet {
28    pub fn new(object: Object, web3_wallet: String, verification: Option<crate::models::Web3WalletVerification>) -> Web3Wallet {
29        Web3Wallet {
30            id: None,
31            object,
32            web3_wallet,
33            verification: if let Some(x) = verification {Some(Box::new(x))} else {None},
34        }
35    }
36}
37
38/// String representing the object's type. Objects of the same type share the same value. 
39#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40pub enum Object {
41    #[serde(rename = "web3_wallet")]
42    Web3Wallet,
43}
44
45impl Default for Object {
46    fn default() -> Object {
47        Self::Web3Wallet
48    }
49}
50