genius-rust 0.1.1

Rust library that allows interact with Genius API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum GeniusError {
    #[error("{0}")]
    InternalServerError(String),
    #[error("Parse error: {0}")]
    ParseError(String),
    #[error("Request error: {0}")]
    RequestError(String),
    #[error("Unauthorized: {0}")]
    Unauthorized(String),
    #[error("Not found: {0}")]
    NotFound(String),
}