mindsdb 0.1.0

SDK for interaction with MindsDB api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

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

#[derive(Debug, Error)]
pub enum Error {
    #[error("Serde json error: {:?}", self)]
    SerdeJsonError(#[from] serde_json::Error),
    
    #[error("Reqwest error: {:?}", self)]
    ReqwestError(#[from] reqwest::Error),

    #[error("Error response: {}", self)]
    InternalError(String),

    #[error("Not found")]
    NotFound,
}