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