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<RecipientPublicKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecipientPublicKey, <__D as Deserializer<'de>>::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) -> RecipientPublicKey
fn from(value: &RecipientPublicKey) -> RecipientPublicKey
Converts to this type from the input type.
Source§impl From<RecipientPublicKeyVariant0> for RecipientPublicKey
impl From<RecipientPublicKeyVariant0> for RecipientPublicKey
Source§fn from(value: RecipientPublicKeyVariant0) -> RecipientPublicKey
fn from(value: RecipientPublicKeyVariant0) -> RecipientPublicKey
Converts to this type from the input type.
Source§impl From<RecipientPublicKeyVariant1> for RecipientPublicKey
impl From<RecipientPublicKeyVariant1> for RecipientPublicKey
Source§fn from(value: RecipientPublicKeyVariant1) -> RecipientPublicKey
fn from(value: RecipientPublicKeyVariant1) -> RecipientPublicKey
Converts to this type from the input type.
Source§impl FromStr for RecipientPublicKey
impl FromStr for RecipientPublicKey
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<RecipientPublicKey, ConversionError>
fn from_str(value: &str) -> Result<RecipientPublicKey, ConversionError>
Parses a string
s to return a value of this type. Read moreSource§impl Serialize for RecipientPublicKey
impl Serialize for RecipientPublicKey
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
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§fn try_from(value: &String) -> Result<RecipientPublicKey, ConversionError>
fn try_from(value: &String) -> Result<RecipientPublicKey, ConversionError>
Performs the conversion.
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§fn try_from(value: &str) -> Result<RecipientPublicKey, ConversionError>
fn try_from(value: &str) -> Result<RecipientPublicKey, ConversionError>
Performs the conversion.
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§fn try_from(value: String) -> Result<RecipientPublicKey, ConversionError>
fn try_from(value: String) -> Result<RecipientPublicKey, ConversionError>
Performs the conversion.
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