smbcloud-gresiq-sdk 0.3.35

Rust client for the smbCloud GresIQ REST gateway — API-key auth, app management, and model assignment for Onde Inference.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum GresiqError {
    /// The HTTP layer failed before we even got a response — network down,
    /// DNS failure, TLS handshake, that sort of thing.
    #[error("request failed: {0}")]
    Http(#[from] reqwest::Error),

    /// The gateway replied with a non-2xx status. The message is whatever
    /// the server put in the response body, or the HTTP reason phrase if
    /// the body wasn't readable.
    #[error("GresIQ API error {status}: {message}")]
    Api { status: u16, message: String },
}