pub enum WalletBatchCreateResult {
Success {
index: f64,
success: bool,
wallet: Wallet,
},
Failure {
code: String,
error: String,
index: f64,
success: bool,
},
}Expand description
A single result from a batch wallet creation operation.
JSON schema
{
"title": "WalletBatchCreateResult",
"description": "A single result from a batch wallet creation
operation.",
"oneOf": [
{
"title": "WalletBatchCreateSuccess",
"description": "A successful wallet creation result within a batch
operation.",
"type": "object",
"required": [
"index",
"success",
"wallet"
],
"properties": {
"index": {
"description": "The index of the wallet in the original request
array.",
"type": "number"
},
"success": {
"type": "boolean",
"enum": [
true
]
},
"wallet": {
"$ref": "#/components/schemas/Wallet"
}
}
},
{
"title": "WalletBatchCreateFailure",
"description": "A failed wallet creation result within a batch
operation.",
"type": "object",
"required": [
"code",
"error",
"index",
"success"
],
"properties": {
"code": {
"description": "A PrivyErrorCode string identifying the error
type (e.g., \"invalid_data\", \"resource_conflict\").",
"type": "string"
},
"error": {
"description": "A human-readable error message with details
about what went wrong.",
"type": "string"
},
"index": {
"description": "The index of the wallet in the original request
array.",
"type": "number"
},
"success": {
"type": "boolean",
"enum": [
false
]
}
}
}
],
"x-stainless-model": "wallets.wallet_batch_create_result"
}Variants§
Trait Implementations§
Source§impl Clone for WalletBatchCreateResult
impl Clone for WalletBatchCreateResult
Source§fn clone(&self) -> WalletBatchCreateResult
fn clone(&self) -> WalletBatchCreateResult
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 WalletBatchCreateResult
impl Debug for WalletBatchCreateResult
Source§impl<'de> Deserialize<'de> for WalletBatchCreateResult
impl<'de> Deserialize<'de> for WalletBatchCreateResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletBatchCreateResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletBatchCreateResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WalletBatchCreateResult> for WalletBatchCreateResult
impl From<&WalletBatchCreateResult> for WalletBatchCreateResult
Source§fn from(value: &WalletBatchCreateResult) -> WalletBatchCreateResult
fn from(value: &WalletBatchCreateResult) -> WalletBatchCreateResult
Converts to this type from the input type.
Source§impl Serialize for WalletBatchCreateResult
impl Serialize for WalletBatchCreateResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for WalletBatchCreateResult
impl RefUnwindSafe for WalletBatchCreateResult
impl Send for WalletBatchCreateResult
impl Sync for WalletBatchCreateResult
impl Unpin for WalletBatchCreateResult
impl UnsafeUnpin for WalletBatchCreateResult
impl UnwindSafe for WalletBatchCreateResult
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