Expand description
§citedhealth
Async Rust client for the Cited Health REST API.
Access evidence-based supplement research data including ingredients, conditions, evidence links with grades (A-F), and PubMed-indexed papers.
§Quick Start
use citedhealth::CitedHealth;
#[tokio::main]
async fn main() -> Result<(), citedhealth::CitedHealthError> {
let client = CitedHealth::new();
// Search for ingredients
let ingredients = client.list_ingredients(Some("biotin"), None).await?;
println!("Found {} ingredients", ingredients.count);
// Get evidence for a specific ingredient-condition pair
let evidence = client.list_evidence(Some("biotin"), Some("hair-loss")).await?;
for link in &evidence.results {
println!("{} for {}: grade {}", link.ingredient.name, link.condition.name, link.grade);
}
Ok(())
}Structs§
- Cited
Health - Async client for the Cited Health REST API.
- Cited
Health Builder - Builder for configuring a
CitedHealthclient. - Condition
- A health condition linked to evidence.
- Evidence
Link - An evidence link between an ingredient and a condition.
- Glossary
Term - A glossary term with definition and categorization.
- Guide
- An educational guide or article.
- Ingredient
- A supplement ingredient with dosage and form information.
- Nested
Ingredient - Minimal ingredient reference nested inside evidence links.
- Paginated
Response - Paginated API response wrapper.
- Paper
- A PubMed-indexed research paper.
Enums§
- Cited
Health Error - Errors returned by the Cited Health API client.