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