BybitResponseCheck

Trait BybitResponseCheck 

Source
pub trait BybitResponseCheck {
    // Required methods
    fn ret_code(&self) -> i64;
    fn ret_msg(&self) -> &str;
}
Expand description

Trait for Bybit response types that contain ret_code and ret_msg fields.

Required Methods§

Source

fn ret_code(&self) -> i64

Returns the response code (0 = success).

Source

fn ret_msg(&self) -> &str

Returns the response message.

Implementors§