api_builder 0.1.2

A simple client-agnostic API builder, inspired by the GitLab crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Errors that can occur when building the body.
#[derive(Debug, thiserror::Error)]
pub enum BodyError {
    #[error("there was insufficient data to build the body")]
    InsufficientData,
    #[error("there was an error building the body")]
    Build,
    #[error("failed to deserialize")]
    Deserialize,
    #[error(transparent)]
    SerdeJson(#[from] serde_json::Error),
    #[error(transparent)]
    Other(#[from] anyhow::Error),
}