pub enum RecipientPublicKey {
Variant0(RecipientPublicKeyVariant0),
Variant1(RecipientPublicKeyVariant1),
}Expand description
The recipient public key for HPKE encryption, in PEM or DER (base64-encoded) format.
JSON schema
{
"title": "RecipientPublicKey",
"description": "The recipient public key for HPKE encryption, in PEM or
DER (base64-encoded) format.",
"oneOf": [
{
"type": "string",
"pattern": "^-----BEGIN PUBLIC
KEY-----\\n[A-Za-z0-9+/=\\n]+-----END PUBLIC KEY-----\\n$"
},
{
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$"
}
],
"x-stainless-model": "wallets.recipient_public_key"
}Variants§
Variant0(RecipientPublicKeyVariant0)
Variant1(RecipientPublicKeyVariant1)
Trait Implementations§
Source§impl Clone for RecipientPublicKey
impl Clone for RecipientPublicKey
Source§fn clone(&self) -> RecipientPublicKey
fn clone(&self) -> RecipientPublicKey
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 RecipientPublicKey
impl Debug for RecipientPublicKey
Source§impl<'de> Deserialize<'de> for RecipientPublicKey
impl<'de> Deserialize<'de> for RecipientPublicKey
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 Display for RecipientPublicKey
impl Display for RecipientPublicKey
Source§impl From<&RecipientPublicKey> for RecipientPublicKey
impl From<&RecipientPublicKey> for RecipientPublicKey
Source§fn from(value: &RecipientPublicKey) -> Self
fn from(value: &RecipientPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<RecipientPublicKeyVariant0> for RecipientPublicKey
impl From<RecipientPublicKeyVariant0> for RecipientPublicKey
Source§fn from(value: RecipientPublicKeyVariant0) -> Self
fn from(value: RecipientPublicKeyVariant0) -> Self
Converts to this type from the input type.
Source§impl From<RecipientPublicKeyVariant1> for RecipientPublicKey
impl From<RecipientPublicKeyVariant1> for RecipientPublicKey
Source§fn from(value: RecipientPublicKeyVariant1) -> Self
fn from(value: RecipientPublicKeyVariant1) -> Self
Converts to this type from the input type.
Source§impl FromStr for RecipientPublicKey
impl FromStr for RecipientPublicKey
Source§impl Serialize for RecipientPublicKey
impl Serialize for RecipientPublicKey
Source§impl TryFrom<&String> for RecipientPublicKey
impl TryFrom<&String> for RecipientPublicKey
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for RecipientPublicKey
impl TryFrom<&str> for RecipientPublicKey
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for RecipientPublicKey
impl TryFrom<String> for RecipientPublicKey
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RecipientPublicKey
impl RefUnwindSafe for RecipientPublicKey
impl Send for RecipientPublicKey
impl Sync for RecipientPublicKey
impl Unpin for RecipientPublicKey
impl UnsafeUnpin for RecipientPublicKey
impl UnwindSafe for RecipientPublicKey
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