signalwire 0.1.6

The unofficial SignalWire SDK for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum SignalWireError {
    #[error("HTTP request failed with status: {0}")]
    HttpError(String),

    #[error("Unauthorized access")]
    Unauthorized,

    #[error("Resource not found: {0}")]
    NotFound(String),

    #[error("Unexpected error: {0}")]
    Unexpected(String),
}