qvet-api 0.1.2

Backend api implementation for qvet.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// Errors that may lead to the OAuth2 code grant not being successfully completed.
#[derive(Error, Debug)]
pub enum Error {
    /// There was an error with our local server listening for the response.
    #[error("Internal error in listener")]
    Listener(hyper::Error),

    #[error("Invalid configuration: {message}")]
    InvalidConfiguration { message: String },
}

pub type Result<T> = std::result::Result<T, Error>;