pub struct X402ExactSolanaPayload {
pub transaction: String,
}Expand description
The x402 protocol exact scheme payload for Solana networks. For more details, please see Solana Exact Scheme Details.
JSON schema
{
"title": "x402ExactSolanaPayload",
"description": "The x402 protocol exact scheme payload for Solana networks. For more details, please see [Solana Exact Scheme Details](https://github.com/coinbase/x402/blob/main/specs/schemes/exact/scheme_exact_svm.md).",
"examples": [
{
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
}
],
"type": "object",
"required": [
"transaction"
],
"properties": {
"transaction": {
"description": "The base64-encoded Solana transaction.",
"examples": [
"AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
],
"type": "string"
}
}
}Fields§
§transaction: StringThe base64-encoded Solana transaction.
Implementations§
Source§impl X402ExactSolanaPayload
impl X402ExactSolanaPayload
pub fn builder() -> X402ExactSolanaPayload
Trait Implementations§
Source§impl Clone for X402ExactSolanaPayload
impl Clone for X402ExactSolanaPayload
Source§fn clone(&self) -> X402ExactSolanaPayload
fn clone(&self) -> X402ExactSolanaPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 X402ExactSolanaPayload
impl Debug for X402ExactSolanaPayload
Source§impl<'de> Deserialize<'de> for X402ExactSolanaPayload
impl<'de> Deserialize<'de> for X402ExactSolanaPayload
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<&X402ExactSolanaPayload> for X402ExactSolanaPayload
impl From<&X402ExactSolanaPayload> for X402ExactSolanaPayload
Source§fn from(value: &X402ExactSolanaPayload) -> Self
fn from(value: &X402ExactSolanaPayload) -> Self
Converts to this type from the input type.
Source§impl From<X402ExactSolanaPayload> for X402ExactSolanaPayload
impl From<X402ExactSolanaPayload> for X402ExactSolanaPayload
Source§fn from(value: X402ExactSolanaPayload) -> Self
fn from(value: X402ExactSolanaPayload) -> Self
Converts to this type from the input type.
Source§impl From<X402ExactSolanaPayload> for X402v1PaymentPayloadPayload
impl From<X402ExactSolanaPayload> for X402v1PaymentPayloadPayload
Source§fn from(value: X402ExactSolanaPayload) -> Self
fn from(value: X402ExactSolanaPayload) -> Self
Converts to this type from the input type.
Source§impl From<X402ExactSolanaPayload> for X402v2PaymentPayloadPayload
impl From<X402ExactSolanaPayload> for X402v2PaymentPayloadPayload
Source§fn from(value: X402ExactSolanaPayload) -> Self
fn from(value: X402ExactSolanaPayload) -> Self
Converts to this type from the input type.
Source§impl Serialize for X402ExactSolanaPayload
impl Serialize for X402ExactSolanaPayload
Source§impl TryFrom<X402ExactSolanaPayload> for X402ExactSolanaPayload
impl TryFrom<X402ExactSolanaPayload> for X402ExactSolanaPayload
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: X402ExactSolanaPayload) -> Result<Self, ConversionError>
fn try_from(value: X402ExactSolanaPayload) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for X402ExactSolanaPayload
impl RefUnwindSafe for X402ExactSolanaPayload
impl Send for X402ExactSolanaPayload
impl Sync for X402ExactSolanaPayload
impl Unpin for X402ExactSolanaPayload
impl UnwindSafe for X402ExactSolanaPayload
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