rust-bybit 0.2.0

Rust API connector for Bybit's WebSocket V5 API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde_json::error::Error as SerdeError;
use std::result;
use thiserror::Error;
use tungstenite::error::Error as TungsteniteError;

pub type Result<T, E = BybitError> = result::Result<T, E>;

#[derive(Error, Debug)]
pub enum BybitError {
    #[error("Serde error: {0}")]
    SerdeError(#[from] SerdeError),

    #[error("Tungstenite error: {0}")]
    TungsteniteError(#[from] TungsteniteError),
}