Skip to main content

Module api

Module api 

Source

Structs§

CodeBlock
A single code block within a documentation snippet.
DocumentationSnippet
Represents a single documentation excerpt returned by the docs endpoint (JSON mode).
LibrarySearchResult
Represents a single library entry returned by the search endpoint.
RespostaDocumentacao
Top-level response from the documentation endpoint (GET /api/v1/{library_id}).
RespostaListaBibliotecas
Top-level response from the library search endpoint (GET /api/v1/search).

Functions§

buscar_biblioteca
Searches for libraries matching nome with optional relevance query_contexto.
buscar_documentacao
Fetches documentation for library_id with an optional query filter (JSON mode).
buscar_documentacao_texto
Fetches documentation for library_id as raw plain text (markdown).
criar_cliente_http
Creates a reusable HTTP client with rustls-TLS, 30 s timeout, and HTTP/2.
executar_com_retry
Executes an API call with retry and key rotation.