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