pub struct CreateUserBody {
pub custom_metadata: Option<CustomMetadata>,
pub linked_accounts: Vec<LinkedAccountInput>,
pub wallets: Vec<CreateUserBodyWalletsItem>,
}Expand description
CreateUserBody
JSON schema
{
"examples": [
{
"linked_accounts": [
{
"address": "tom.bombadill@privy.io",
"type": "email"
}
]
}
],
"type": "object",
"required": [
"linked_accounts"
],
"properties": {
"custom_metadata": {
"$ref": "#/components/schemas/CustomMetadata"
},
"linked_accounts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LinkedAccountInput"
}
},
"wallets": {
"description": "Wallets to create for the user.",
"type": "array",
"items": {
"type": "object",
"required": [
"chain_type"
],
"properties": {
"additional_signers": {
"description": "Additional signers for the wallet.",
"type": "array",
"items": {
"type": "object",
"required": [
"signer_id"
],
"properties": {
"override_policy_ids": {
"description": "The array of policy IDs that will be
applied to wallet requests. If specified, this will override the base
policy IDs set on the wallet. Currently, only one policy is supported
per signer.",
"type": "array",
"items": {
"type": "string",
"maxLength": 24,
"minLength": 24
}
},
"signer_id": {
"description": "The key quorum ID for the signer.",
"type": "string"
}
}
}
},
"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
}
}
}
}
}
}Fields§
§custom_metadata: Option<CustomMetadata>§linked_accounts: Vec<LinkedAccountInput>§wallets: Vec<CreateUserBodyWalletsItem>Wallets to create for the user.
Trait Implementations§
Source§impl Clone for CreateUserBody
impl Clone for CreateUserBody
Source§fn clone(&self) -> CreateUserBody
fn clone(&self) -> CreateUserBody
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateUserBody
impl Debug for CreateUserBody
Source§impl<'de> Deserialize<'de> for CreateUserBody
impl<'de> Deserialize<'de> for CreateUserBody
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<&CreateUserBody> for CreateUserBody
impl From<&CreateUserBody> for CreateUserBody
Source§fn from(value: &CreateUserBody) -> Self
fn from(value: &CreateUserBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateUserBody
impl RefUnwindSafe for CreateUserBody
impl Send for CreateUserBody
impl Sync for CreateUserBody
impl Unpin for CreateUserBody
impl UnwindSafe for CreateUserBody
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