pub struct HpkeImportConfig {
pub aad: Option<String>,
pub aead_algorithm: Option<HpkeAeadAlgorithm>,
pub info: Option<String>,
}Expand description
Optional HPKE configuration for wallet import decryption. These parameters allow importing wallets encrypted by external providers that use different HPKE configurations.
JSON schema
{
"title": "HPKEImportConfig",
"description": "Optional HPKE configuration for wallet import
decryption. These parameters allow importing wallets encrypted by
external providers that use different HPKE configurations.",
"type": "object",
"properties": {
"aad": {
"description": "Additional Authenticated Data (AAD) used during
encryption. Should be base64-encoded bytes.",
"type": "string"
},
"aead_algorithm": {
"allOf": [
{
"$ref": "#/components/schemas/HPKEAeadAlgorithm"
},
{
"description": "The AEAD algorithm used for encryption.
Defaults to CHACHA20_POLY1305 if not specified."
}
]
},
"info": {
"description": "Application-specific context information (INFO)
used during HPKE encryption. Should be base64-encoded bytes.",
"type": "string"
}
},
"x-stainless-model": "wallets.hpke_import_config"
}Fields§
§aad: Option<String>Additional Authenticated Data (AAD) used during encryption. Should be base64-encoded bytes.
aead_algorithm: Option<HpkeAeadAlgorithm>§info: Option<String>Application-specific context information (INFO) used during HPKE encryption. Should be base64-encoded bytes.
Trait Implementations§
Source§impl Clone for HpkeImportConfig
impl Clone for HpkeImportConfig
Source§fn clone(&self) -> HpkeImportConfig
fn clone(&self) -> HpkeImportConfig
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 HpkeImportConfig
impl Debug for HpkeImportConfig
Source§impl Default for HpkeImportConfig
impl Default for HpkeImportConfig
Source§impl<'de> Deserialize<'de> for HpkeImportConfig
impl<'de> Deserialize<'de> for HpkeImportConfig
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<&HpkeImportConfig> for HpkeImportConfig
impl From<&HpkeImportConfig> for HpkeImportConfig
Source§fn from(value: &HpkeImportConfig) -> Self
fn from(value: &HpkeImportConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HpkeImportConfig
impl RefUnwindSafe for HpkeImportConfig
impl Send for HpkeImportConfig
impl Sync for HpkeImportConfig
impl Unpin for HpkeImportConfig
impl UnsafeUnpin for HpkeImportConfig
impl UnwindSafe for HpkeImportConfig
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