pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub fn with_base_url(base_url: &str) -> Self
pub async fn list_tools( &self, opts: &ListOptions, ) -> Result<PaginatedResponse<Tool>>
pub async fn get_tool(&self, slug: &str) -> Result<Tool>
pub async fn list_categories( &self, opts: &ListOptions, ) -> Result<PaginatedResponse<Category>>
pub async fn list_formats( &self, opts: &ListOptions, ) -> Result<PaginatedResponse<Format>>
pub async fn get_format(&self, slug: &str) -> Result<Format>
pub async fn list_conversions( &self, opts: &ListConversionsOptions, ) -> Result<PaginatedResponse<Conversion>>
pub async fn list_glossary( &self, opts: &ListOptions, ) -> Result<PaginatedResponse<GlossaryTerm>>
pub async fn get_glossary_term(&self, slug: &str) -> Result<GlossaryTerm>
pub async fn list_guides( &self, opts: &ListGuidesOptions, ) -> Result<PaginatedResponse<Guide>>
pub async fn get_guide(&self, slug: &str) -> Result<Guide>
pub async fn list_use_cases( &self, opts: &ListOptions, ) -> Result<PaginatedResponse<UseCase>>
pub async fn search( &self, query: &str, limit: Option<u32>, ) -> Result<SearchResult>
pub async fn list_sites(&self) -> Result<PaginatedResponse<Site>>
pub async fn openapi_spec(&self) -> Result<Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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