pub struct BybitApiResponse<T> {
pub ret_code: i32,
pub ret_msg: String,
pub result: Option<T>,
pub ret_ext_info: Option<BybitExtInfo>,
}Expand description
Bybit API response wrapper
Fields§
§ret_code: i32Return code from API (0 for success)
ret_msg: StringReturn message from API
result: Option<T>Result data from API call
ret_ext_info: Option<BybitExtInfo>Extended info containing error details for batch operations
Trait Implementations§
Source§impl<T: Debug> Debug for BybitApiResponse<T>
impl<T: Debug> Debug for BybitApiResponse<T>
Source§impl<'de, T> Deserialize<'de> for BybitApiResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BybitApiResponse<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for BybitApiResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for BybitApiResponse<T>where
T: RefUnwindSafe,
impl<T> Send for BybitApiResponse<T>where
T: Send,
impl<T> Sync for BybitApiResponse<T>where
T: Sync,
impl<T> Unpin for BybitApiResponse<T>where
T: Unpin,
impl<T> UnwindSafe for BybitApiResponse<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more