pub struct BybitResponse {
pub success: bool,
pub ret_msg: BybitReturnMessage,
}Expand description
Bybit subscription response message.
§Raw Payload Examples
See docs: https://bybit-exchange.github.io/docs/v5/ws/connect#understanding-the-subscription-response
§Subscription Success
{
"success": true,
"ret_msg": "subscribe",
"conn_id": "2324d924-aa4d-45b0-a858-7b8be29ab52b",
"req_id": "10001",
"op": "subscribe"
}
#### Subscription Failure
```json
{
"success": false,
"ret_msg": "",
"conn_id": "2324d924-aa4d-45b0-a858-7b8be29ab52b",
"req_id": "10001",
"op": "subscribe"
}Fields§
§success: bool§ret_msg: BybitReturnMessageTrait Implementations§
Source§impl Clone for BybitResponse
impl Clone for BybitResponse
Source§fn clone(&self) -> BybitResponse
fn clone(&self) -> BybitResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BybitResponse
impl Debug for BybitResponse
Source§impl<'de> Deserialize<'de> for BybitResponse
impl<'de> Deserialize<'de> for BybitResponse
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
Source§impl Hash for BybitResponse
impl Hash for BybitResponse
Source§impl Ord for BybitResponse
impl Ord for BybitResponse
Source§fn cmp(&self, other: &BybitResponse) -> Ordering
fn cmp(&self, other: &BybitResponse) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BybitResponse
impl PartialEq for BybitResponse
Source§fn eq(&self, other: &BybitResponse) -> bool
fn eq(&self, other: &BybitResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BybitResponse
impl PartialOrd for BybitResponse
Source§impl Serialize for BybitResponse
impl Serialize for BybitResponse
Source§impl Validator for BybitResponse
impl Validator for BybitResponse
impl Copy for BybitResponse
impl Eq for BybitResponse
impl StructuralPartialEq for BybitResponse
Auto Trait Implementations§
impl Freeze for BybitResponse
impl RefUnwindSafe for BybitResponse
impl Send for BybitResponse
impl Sync for BybitResponse
impl Unpin for BybitResponse
impl UnsafeUnpin for BybitResponse
impl UnwindSafe for BybitResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more