pub struct ImportEndUserBody {
pub authentication_methods: AuthenticationMethods,
pub encrypted_private_key: String,
pub key_type: ImportEndUserBodyKeyType,
pub user_id: ImportEndUserBodyUserId,
}Expand description
ImportEndUserBody
JSON schema
{
"type": "object",
"required": [
"authenticationMethods",
"encryptedPrivateKey",
"keyType",
"userId"
],
"properties": {
"authenticationMethods": {
"$ref": "#/components/schemas/AuthenticationMethods"
},
"encryptedPrivateKey": {
"description": "The base64-encoded, encrypted private key to import. The private key must be encrypted using the CDP SDK's encryption scheme. This is a 32-byte raw private key.",
"examples": [
"U2FsdGVkX1+vupppZksvRf5X5YgHq4+da+Q4qf51+Q4="
],
"type": "string"
},
"keyType": {
"description": "The type of key being imported. Determines what type of account will be associated for the end user.",
"examples": [
"evm"
],
"type": "string",
"enum": [
"evm",
"solana"
]
},
"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§encrypted_private_key: StringThe base64-encoded, encrypted private key to import. The private key must be encrypted using the CDP SDK’s encryption scheme. This is a 32-byte raw private key.
key_type: ImportEndUserBodyKeyTypeThe type of key being imported. Determines what type of account will be associated for the end user.
user_id: ImportEndUserBodyUserIdA 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§
Source§impl ImportEndUserBody
impl ImportEndUserBody
pub fn builder() -> ImportEndUserBody
Trait Implementations§
Source§impl Clone for ImportEndUserBody
impl Clone for ImportEndUserBody
Source§fn clone(&self) -> ImportEndUserBody
fn clone(&self) -> ImportEndUserBody
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 ImportEndUserBody
impl Debug for ImportEndUserBody
Source§impl<'de> Deserialize<'de> for ImportEndUserBody
impl<'de> Deserialize<'de> for ImportEndUserBody
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<&ImportEndUserBody> for ImportEndUserBody
impl From<&ImportEndUserBody> for ImportEndUserBody
Source§fn from(value: &ImportEndUserBody) -> Self
fn from(value: &ImportEndUserBody) -> Self
Converts to this type from the input type.
Source§impl From<ImportEndUserBody> for ImportEndUserBody
impl From<ImportEndUserBody> for ImportEndUserBody
Source§fn from(value: ImportEndUserBody) -> Self
fn from(value: ImportEndUserBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for ImportEndUserBody
impl Serialize for ImportEndUserBody
Source§impl TryFrom<ImportEndUserBody> for ImportEndUserBody
impl TryFrom<ImportEndUserBody> for ImportEndUserBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ImportEndUserBody) -> Result<Self, ConversionError>
fn try_from(value: ImportEndUserBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImportEndUserBody
impl RefUnwindSafe for ImportEndUserBody
impl Send for ImportEndUserBody
impl Sync for ImportEndUserBody
impl Unpin for ImportEndUserBody
impl UnsafeUnpin for ImportEndUserBody
impl UnwindSafe for ImportEndUserBody
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