pub struct SignSolanaMessageBody {
pub encoding: Option<SignSolanaMessageBodyEncoding>,
pub message: String,
}Expand description
SignSolanaMessageBody
JSON schema
{
"type": "object",
"required": [
"message"
],
"properties": {
"encoding": {
"description": "The encoding of the message. Use `utf8` to sign the literal UTF-8 bytes of the message, or `base64` to decode an RFC 4648 standard Base64 string before signing. Base64 input must use the standard `+` and `/` alphabet with `=` padding where required. If omitted, the message is interpreted as UTF-8.",
"examples": [
"utf8"
],
"type": "string",
"enum": [
"utf8",
"base64"
]
},
"message": {
"description": "The arbitrary message to sign.",
"examples": [
"Hello, world!"
],
"type": "string"
}
}
}Fields§
§encoding: Option<SignSolanaMessageBodyEncoding>The encoding of the message. Use utf8 to sign the literal UTF-8 bytes of the message, or base64 to decode an RFC 4648 standard Base64 string before signing. Base64 input must use the standard + and / alphabet with = padding where required. If omitted, the message is interpreted as UTF-8.
message: StringThe arbitrary message to sign.
Implementations§
Source§impl SignSolanaMessageBody
impl SignSolanaMessageBody
pub fn builder() -> SignSolanaMessageBody
Trait Implementations§
Source§impl Clone for SignSolanaMessageBody
impl Clone for SignSolanaMessageBody
Source§impl Debug for SignSolanaMessageBody
impl Debug for SignSolanaMessageBody
Source§impl<'de> Deserialize<'de> for SignSolanaMessageBody
impl<'de> Deserialize<'de> for SignSolanaMessageBody
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<&SignSolanaMessageBody> for SignSolanaMessageBody
impl From<&SignSolanaMessageBody> for SignSolanaMessageBody
Source§fn from(value: &SignSolanaMessageBody) -> Self
fn from(value: &SignSolanaMessageBody) -> Self
Converts to this type from the input type.
Source§impl From<SignSolanaMessageBody> for SignSolanaMessageBody
impl From<SignSolanaMessageBody> for SignSolanaMessageBody
Source§fn from(value: SignSolanaMessageBody) -> Self
fn from(value: SignSolanaMessageBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for SignSolanaMessageBody
impl Serialize for SignSolanaMessageBody
Source§impl TryFrom<SignSolanaMessageBody> for SignSolanaMessageBody
impl TryFrom<SignSolanaMessageBody> for SignSolanaMessageBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignSolanaMessageBody) -> Result<Self, ConversionError>
fn try_from(value: SignSolanaMessageBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignSolanaMessageBody
impl RefUnwindSafe for SignSolanaMessageBody
impl Send for SignSolanaMessageBody
impl Sync for SignSolanaMessageBody
impl Unpin for SignSolanaMessageBody
impl UnsafeUnpin for SignSolanaMessageBody
impl UnwindSafe for SignSolanaMessageBody
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