apollo-errors-derive 0.5.0

Proc macro for deriving apollo-errors::Error trait
Documentation
1
2
3
4
5
6
7
8
/// The value supplied to `#[http_status(...)]`.
#[derive(Debug, Clone)]
pub(crate) enum HttpStatusValue {
    /// An integer literal such as `404`, validated by the derive macro.
    Code(u16),
    /// A path expression such as `StatusCode::NOT_FOUND`, validated by rustc.
    Path(syn::Path),
}