pub struct WalletCreationInput {
pub additional_signers: Vec<WalletCreationAdditionalSignerItem>,
pub chain_type: WalletChainType,
pub create_smart_wallet: Option<bool>,
pub policy_ids: Vec<WalletCreationInputPolicyIdsItem>,
}Expand description
The fields on wallet creation that can be specified when creating a user-controlled embedded server wallet.
JSON schema
{
"title": "WalletCreationInput",
"description": "The fields on wallet creation that can be specified
when creating a user-controlled embedded server wallet.",
"type": "object",
"required": [
"chain_type"
],
"properties": {
"additional_signers": {
"description": "Additional signers for the wallet.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WalletCreationAdditionalSignerItem"
}
},
"chain_type": {
"$ref": "#/components/schemas/WalletChainType"
},
"create_smart_wallet": {
"description": "Create a smart wallet with this wallet as the signer. Only supported for wallets with `chain_type: \"ethereum\"`.",
"type": "boolean"
},
"policy_ids": {
"description": "Policy IDs to enforce on the wallet. Currently,
only one policy is supported per wallet.",
"type": "array",
"items": {
"type": "string",
"maxLength": 24,
"minLength": 24
},
"maxItems": 1
}
},
"x-stainless-model": "embedded_wallets.wallet_creation_input"
}Fields§
§additional_signers: Vec<WalletCreationAdditionalSignerItem>Additional signers for the wallet.
chain_type: WalletChainType§create_smart_wallet: Option<bool>Create a smart wallet with this wallet as the signer. Only supported
for wallets with chain_type: "ethereum".
policy_ids: Vec<WalletCreationInputPolicyIdsItem>Policy IDs to enforce on the wallet. Currently, only one policy is supported per wallet.
Trait Implementations§
Source§impl Clone for WalletCreationInput
impl Clone for WalletCreationInput
Source§fn clone(&self) -> WalletCreationInput
fn clone(&self) -> WalletCreationInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalletCreationInput
impl Debug for WalletCreationInput
Source§impl<'de> Deserialize<'de> for WalletCreationInput
impl<'de> Deserialize<'de> for WalletCreationInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WalletCreationInput> for WalletCreationInput
impl From<&WalletCreationInput> for WalletCreationInput
Source§fn from(value: &WalletCreationInput) -> Self
fn from(value: &WalletCreationInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletCreationInput
impl RefUnwindSafe for WalletCreationInput
impl Send for WalletCreationInput
impl Sync for WalletCreationInput
impl Unpin for WalletCreationInput
impl UnsafeUnpin for WalletCreationInput
impl UnwindSafe for WalletCreationInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more