pub struct SignSolMessageSimulationInput {
pub address: SignSolMessageSimulationInputAddress,
pub encoding: Option<SignSolMessageSimulationInputEncoding>,
pub message: String,
pub operation: SignSolMessageSimulationInputOperation,
}Expand description
SignSolMessageSimulationInput
JSON schema
{
"title": "SignSolMessageSimulationInput",
"examples": [
{
"address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"message": "Hello, world!",
"operation": "signSolMessage"
}
],
"type": "object",
"required": [
"address",
"message",
"operation"
],
"properties": {
"address": {
"description": "The base58 encoded address of the Solana account.",
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
},
"encoding": {
"description": "The encoding of the message. Use `utf8` to evaluate the literal UTF-8 bytes of the message, or `base64` to decode an RFC 4648 standard Base64 string before evaluating. 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"
],
"x-go-type": "string"
},
"message": {
"description": "The arbitrary message to evaluate.",
"type": "string"
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"signSolMessage"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§address: SignSolMessageSimulationInputAddressThe base58 encoded address of the Solana account.
encoding: Option<SignSolMessageSimulationInputEncoding>The encoding of the message. Use utf8 to evaluate the literal UTF-8 bytes of the message, or base64 to decode an RFC 4648 standard Base64 string before evaluating. 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 evaluate.
operation: SignSolMessageSimulationInputOperationRule operation to simulate.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignSolMessageSimulationInput
impl<'de> Deserialize<'de> for SignSolMessageSimulationInput
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<&SignSolMessageSimulationInput> for SignSolMessageSimulationInput
impl From<&SignSolMessageSimulationInput> for SignSolMessageSimulationInput
Source§fn from(value: &SignSolMessageSimulationInput) -> Self
fn from(value: &SignSolMessageSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignSolMessageSimulationInput> for SimulatePoliciesRequest
impl From<SignSolMessageSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SignSolMessageSimulationInput) -> Self
fn from(value: SignSolMessageSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignSolMessageSimulationInput> for SignSolMessageSimulationInput
impl From<SignSolMessageSimulationInput> for SignSolMessageSimulationInput
Source§fn from(value: SignSolMessageSimulationInput) -> Self
fn from(value: SignSolMessageSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SignSolMessageSimulationInput> for SignSolMessageSimulationInput
impl TryFrom<SignSolMessageSimulationInput> for SignSolMessageSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SignSolMessageSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SignSolMessageSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignSolMessageSimulationInput
impl RefUnwindSafe for SignSolMessageSimulationInput
impl Send for SignSolMessageSimulationInput
impl Sync for SignSolMessageSimulationInput
impl Unpin for SignSolMessageSimulationInput
impl UnsafeUnpin for SignSolMessageSimulationInput
impl UnwindSafe for SignSolMessageSimulationInput
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