pub struct PaymentPayload { /* private fields */ }Implementations§
Source§impl PaymentPayload
impl PaymentPayload
pub fn accepted<T>(self, value: T) -> Self
pub fn extensions<T>(self, value: T) -> Self
pub fn payload<T>(self, value: T) -> Self
pub fn resource<T>(self, value: T) -> Self
pub fn x402_version<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for PaymentPayload
impl Clone for PaymentPayload
Source§fn clone(&self) -> PaymentPayload
fn clone(&self) -> PaymentPayload
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 PaymentPayload
impl Debug for PaymentPayload
Source§impl Default for PaymentPayload
impl Default for PaymentPayload
Source§impl From<PaymentPayload> for PaymentPayload
impl From<PaymentPayload> for PaymentPayload
Source§fn from(value: PaymentPayload) -> Self
fn from(value: PaymentPayload) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PaymentPayload> for PaymentPayload
impl TryFrom<PaymentPayload> for PaymentPayload
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentPayload) -> Result<Self, ConversionError>
fn try_from(value: PaymentPayload) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentPayload
impl RefUnwindSafe for PaymentPayload
impl Send for PaymentPayload
impl Sync for PaymentPayload
impl Unpin for PaymentPayload
impl UnsafeUnpin for PaymentPayload
impl UnwindSafe for PaymentPayload
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