pub struct SignX402PaymentIntent {
pub intent_id: Uuid,
pub signature_scheme: Option<X402SignatureScheme>,
pub signature: String,
pub public_key: String,
pub signature_bundle: Option<X402SignatureBundle>,
pub public_key_bundle: Option<X402PublicKeyBundle>,
}Expand description
Input for signing an x402 payment intent
Fields§
§intent_id: UuidIntent ID to sign
signature_scheme: Option<X402SignatureScheme>Signature scheme used to authorize the intent. Absent = the intent’s stored preference, with legacy rows falling back to Ed25519.
signature: StringEd25519 signature material (hex-encoded, 64 bytes) for legacy or hybrid flows.
public_key: StringPayer’s Ed25519 public key (hex-encoded, 32 bytes) for legacy or hybrid flows.
signature_bundle: Option<X402SignatureBundle>Additional PQC signature material for hybrid or strict signatures.
public_key_bundle: Option<X402PublicKeyBundle>Additional PQC public-key material for hybrid or strict signatures.
Trait Implementations§
Source§impl Clone for SignX402PaymentIntent
impl Clone for SignX402PaymentIntent
Source§fn clone(&self) -> SignX402PaymentIntent
fn clone(&self) -> SignX402PaymentIntent
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 SignX402PaymentIntent
impl Debug for SignX402PaymentIntent
Source§impl<'de> Deserialize<'de> for SignX402PaymentIntent
impl<'de> Deserialize<'de> for SignX402PaymentIntent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignX402PaymentIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignX402PaymentIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SignX402PaymentIntent
impl Serialize for SignX402PaymentIntent
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
Auto Trait Implementations§
impl Freeze for SignX402PaymentIntent
impl RefUnwindSafe for SignX402PaymentIntent
impl Send for SignX402PaymentIntent
impl Sync for SignX402PaymentIntent
impl Unpin for SignX402PaymentIntent
impl UnsafeUnpin for SignX402PaymentIntent
impl UnwindSafe for SignX402PaymentIntent
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