Crate congressdotgov_rs

Crate congressdotgov_rs 

Source
Expand description

Rust bindings to the congress.gov REST API.

§High-level features

  • REST API bindings are divided between Endpoint, Client, and Query traits
  • Auth and state are managed by the Cdg struct
  • Optional Endpoint parameters are added to a query via a Builder API
  • Responses are returned as a serde_json::Value

This crate only provides an async implementation.

Modules§

api
API endpoint structures

Structs§

Cdg
The primary struct used when consuming Endpoints. Holds a reusable reqwest::Client, base url, and Auth.

Enums§

Auth
The different ways to authenticate with the congress.gov API. Currently, only token-based authentication exists.
CdgError
Various error types that can occur when using the Cdg struct and its values.