pub struct EndUser {
pub authentication_methods: AuthenticationMethods,
pub evm_accounts: Vec<EndUserEvmAccountsItem>,
pub evm_smart_accounts: Vec<EndUserEvmSmartAccountsItem>,
pub solana_accounts: Vec<EndUserSolanaAccountsItem>,
pub user_id: EndUserUserId,
}
Expand description
Information about the end user.
JSON schema
{
"description": "Information about the end user.",
"type": "object",
"required": [
"authenticationMethods",
"evmAccounts",
"evmSmartAccounts",
"solanaAccounts",
"userId"
],
"properties": {
"authenticationMethods": {
"$ref": "#/components/schemas/AuthenticationMethods"
},
"evmAccounts": {
"description": "The list of EVM accounts associated with the end user. Currently, only one EVM account is supported per end user.",
"examples": [
[
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
]
],
"type": "array",
"items": {
"description": "The address of the EVM account associated with the end user.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"evmSmartAccounts": {
"description": "The list of EVM smart accounts associated with the end user. Currently, only one EVM smart account is supported per end user.",
"examples": [
[
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
]
],
"type": "array",
"items": {
"description": "The address of the EVM smart account associated with the end user.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"solanaAccounts": {
"description": "The list of Solana accounts associated with the end user. Currently, only one Solana account is supported per end user.",
"examples": [
[
"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"
]
],
"type": "array",
"items": {
"description": "The base58 encoded address of the Solana account associated with the end user.",
"examples": [
"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"
],
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
}
},
"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.",
"examples": [
"e051beeb-7163-4527-a5b6-35e301529ff2"
],
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
}
}
Fields§
§authentication_methods: AuthenticationMethods
§evm_accounts: Vec<EndUserEvmAccountsItem>
The list of EVM accounts associated with the end user. Currently, only one EVM account is supported per end user.
evm_smart_accounts: Vec<EndUserEvmSmartAccountsItem>
The list of EVM smart accounts associated with the end user. Currently, only one EVM smart account is supported per end user.
solana_accounts: Vec<EndUserSolanaAccountsItem>
The list of Solana accounts associated with the end user. Currently, only one Solana account is supported per end user.
user_id: EndUserUserId
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.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EndUser
impl<'de> Deserialize<'de> for EndUser
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
Auto Trait Implementations§
impl Freeze for EndUser
impl RefUnwindSafe for EndUser
impl Send for EndUser
impl Sync for EndUser
impl Unpin for EndUser
impl UnwindSafe for EndUser
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