workos-rust 0.2.1

unofficial rust sdk for interacting with the workos api
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum WorkOSError {
    #[error("resource was not found, id: `{0}`")]
    NotFound(String),
    #[error("the request was not acceptable")]
    NotAcceptable,
    #[error("the api key used was invalid")]
    InvalidApiKey,
    #[error("the api key used did not have the correct permissions")]
    IncorrectPermissions,
    #[error("unknown error")]
    Unknown(#[from] anyhow::Error),
}