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