pub struct CreateEndUserBody {
pub authentication_methods: AuthenticationMethods,
pub evm_account: Option<CreateEndUserBodyEvmAccount>,
pub solana_account: Option<CreateEndUserBodySolanaAccount>,
pub user_id: Option<CreateEndUserBodyUserId>,
}Expand description
CreateEndUserBody
JSON schema
{
"type": "object",
"required": [
"authenticationMethods"
],
"properties": {
"authenticationMethods": {
"$ref": "#/components/schemas/AuthenticationMethods"
},
"evmAccount": {
"description": "Configuration for creating an EVM account for the end user.",
"type": "object",
"properties": {
"createSmartAccount": {
"description": "If true, creates an EVM smart account and a default EVM EOA account as the owner. If false, only a EVM EOA account is created.",
"default": false,
"examples": [
true
],
"type": "boolean"
}
}
},
"solanaAccount": {
"description": "Configuration for creating a Solana account for the end user.",
"type": "object",
"properties": {
"createSmartAccount": {
"description": "Only false is a valid option since currently smart accounts on Solana are not supported.",
"default": false,
"examples": [
false
],
"type": "boolean"
}
}
},
"userId": {
"description": "A stable, unique identifier for the end user. The `userId` must be unique across all end users in the developer's CDP Project. It must be between 1 and 100 characters long and can only contain alphanumeric characters and hyphens.\n\nIf `userId` is not provided in the request, the server will generate a random UUID.",
"examples": [
"e051beeb-7163-4527-a5b6-35e301529ff2"
],
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
}
}Fields§
§authentication_methods: AuthenticationMethods§evm_account: Option<CreateEndUserBodyEvmAccount>§solana_account: Option<CreateEndUserBodySolanaAccount>§user_id: Option<CreateEndUserBodyUserId>A stable, unique identifier for the end user. The userId must be unique across all end users in the developer’s CDP Project. It must be between 1 and 100 characters long and can only contain alphanumeric characters and hyphens.
If `userId` is not provided in the request, the server will generate a random UUID.Implementations§
Source§impl CreateEndUserBody
impl CreateEndUserBody
pub fn builder() -> CreateEndUserBody
Trait Implementations§
Source§impl Clone for CreateEndUserBody
impl Clone for CreateEndUserBody
Source§fn clone(&self) -> CreateEndUserBody
fn clone(&self) -> CreateEndUserBody
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 CreateEndUserBody
impl Debug for CreateEndUserBody
Source§impl<'de> Deserialize<'de> for CreateEndUserBody
impl<'de> Deserialize<'de> for CreateEndUserBody
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<&CreateEndUserBody> for CreateEndUserBody
impl From<&CreateEndUserBody> for CreateEndUserBody
Source§fn from(value: &CreateEndUserBody) -> Self
fn from(value: &CreateEndUserBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateEndUserBody> for CreateEndUserBody
impl From<CreateEndUserBody> for CreateEndUserBody
Source§fn from(value: CreateEndUserBody) -> Self
fn from(value: CreateEndUserBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateEndUserBody
impl Serialize for CreateEndUserBody
Source§impl TryFrom<CreateEndUserBody> for CreateEndUserBody
impl TryFrom<CreateEndUserBody> for CreateEndUserBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateEndUserBody) -> Result<Self, ConversionError>
fn try_from(value: CreateEndUserBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateEndUserBody
impl RefUnwindSafe for CreateEndUserBody
impl Send for CreateEndUserBody
impl Sync for CreateEndUserBody
impl Unpin for CreateEndUserBody
impl UnwindSafe for CreateEndUserBody
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