pub struct ClientSchemes(/* private fields */);Expand description
Internal collection of registered scheme clients.
Implementations§
Source§impl ClientSchemes
impl ClientSchemes
Sourcepub fn push<T: X402SchemeClient + 'static>(&mut self, client: T)
pub fn push<T: X402SchemeClient + 'static>(&mut self, client: T)
Adds a scheme client to the collection.
Sourcepub fn candidates(
&self,
payment_required: &PaymentRequired,
) -> Vec<PaymentCandidate>
pub fn candidates( &self, payment_required: &PaymentRequired, ) -> Vec<PaymentCandidate>
Finds all payment candidates that can handle the given payment requirements.
Trait Implementations§
Source§impl Default for ClientSchemes
impl Default for ClientSchemes
Source§fn default() -> ClientSchemes
fn default() -> ClientSchemes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientSchemes
impl !RefUnwindSafe for ClientSchemes
impl Send for ClientSchemes
impl Sync for ClientSchemes
impl Unpin for ClientSchemes
impl UnsafeUnpin for ClientSchemes
impl !UnwindSafe for ClientSchemes
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