clerk_rs/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.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct Web3Wallet {
13	#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
14	pub id: Option<String>,
15	/// String representing the object's type. Objects of the same type share the same value.
16	#[serde(rename = "object")]
17	pub object: Object,
18	#[serde(rename = "web3_wallet")]
19	pub web3_wallet: String,
20	#[serde(rename = "verification", deserialize_with = "Option::deserialize")]
21	pub verification: Option<Box<crate::models::Web3WalletVerification>>,
22}
23
24impl Web3Wallet {
25	pub fn new(object: Object, web3_wallet: String, verification: Option<crate::models::Web3WalletVerification>) -> Web3Wallet {
26		Web3Wallet {
27			id: None,
28			object,
29			web3_wallet,
30			verification: if let Some(x) = verification { Some(Box::new(x)) } else { None },
31		}
32	}
33}
34
35/// String representing the object's type. Objects of the same type share the same value.
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Object {
38	#[serde(rename = "web3_wallet")]
39	Web3Wallet,
40}
41
42impl Default for Object {
43	fn default() -> Object {
44		Self::Web3Wallet
45	}
46}