Skip to main content

hanzo_client/models/
create_wallet_in.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateWalletIn {
16    /// AccountID is the account this wallet belongs to. Required, and it must be an account of the caller's own org — an unknown one is a 404.
17    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
18    pub account_id: Option<String>,
19    /// Agent optionally narrows the wallet to one agent within the org. It becomes a segment of the key ref, so it must be a url-safe segment with no slash.
20    #[serde(rename = "agent", skip_serializing_if = "Option::is_none")]
21    pub agent: Option<String>,
22    /// Chain is the EVM chain this wallet is for, as \"eip155:<n>\" or a bare decimal chain id. Optional; a Safe defaults to the Hanzo L1 (36963).
23    #[serde(rename = "chain", skip_serializing_if = "Option::is_none")]
24    pub chain: Option<String>,
25    /// Custody selects the signing backend: \"kms\" (in-process, always available), \"mpc\" or \"treasury\" (the deployed MPC ring), or \"safe\" (a Safe smart wallet owned by an MPC key). Empty uses the deployment's default. A backend that is not configured fails CLOSED with 503 rather than fabricating a signature.
26    #[serde(rename = "custody", skip_serializing_if = "Option::is_none")]
27    pub custody: Option<String>,
28    /// Name is the wallet's display label. Optional.
29    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30    pub name: Option<String>,
31    /// Tier is the MPC wallet tier: hot, warm, cold, gas, bridge, contract_admin, validator, quarantine or disaster_recovery. Empty defaults to hot.
32    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
33    pub tier: Option<String>,
34}
35
36impl CreateWalletIn {
37    pub fn new() -> CreateWalletIn {
38        CreateWalletIn {
39            account_id: None,
40            agent: None,
41            chain: None,
42            custody: None,
43            name: None,
44            tier: None,
45        }
46    }
47}
48