pub struct DiscoveryClient { /* private fields */ }Expand description
Discovery client for finding x402 resources
Implementations§
Source§impl DiscoveryClient
impl DiscoveryClient
Sourcepub fn default_client() -> Self
pub fn default_client() -> Self
Get the default discovery client
Sourcepub async fn discover_resources(
&self,
filters: Option<DiscoveryFilters>,
) -> Result<DiscoveryResponse>
pub async fn discover_resources( &self, filters: Option<DiscoveryFilters>, ) -> Result<DiscoveryResponse>
Discover resources with optional filters
Sourcepub async fn get_all_resources(&self) -> Result<DiscoveryResponse>
pub async fn get_all_resources(&self) -> Result<DiscoveryResponse>
Get all available resources
Sourcepub async fn get_resources_by_type(
&self,
resource_type: &str,
) -> Result<DiscoveryResponse>
pub async fn get_resources_by_type( &self, resource_type: &str, ) -> Result<DiscoveryResponse>
Get resources by type
Trait Implementations§
Source§impl Clone for DiscoveryClient
impl Clone for DiscoveryClient
Source§fn clone(&self) -> DiscoveryClient
fn clone(&self) -> DiscoveryClient
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 moreAuto Trait Implementations§
impl Freeze for DiscoveryClient
impl !RefUnwindSafe for DiscoveryClient
impl Send for DiscoveryClient
impl Sync for DiscoveryClient
impl Unpin for DiscoveryClient
impl !UnwindSafe for DiscoveryClient
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