#[non_exhaustive]pub struct ChannelAcknowledgement {
pub event: String,
pub id: String,
pub arg: Option<Arg>,
pub code: String,
pub msg: String,
pub conn_id: String,
pub extra: ResponseExtraFields,
}Expand description
Subscribe/unsubscribe acknowledgement body.
OKX docs: https://www.okx.com/docs-v5/en/#overview-websocket-subscribe
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event: Stringsubscribe, unsubscribe, or error.
id: StringClient message ID when one was included in the request.
arg: Option<Arg>Acknowledged channel argument.
code: StringOKX response/error code when supplied.
msg: StringOKX response/error message when supplied.
conn_id: StringWebSocket connection ID.
extra: ResponseExtraFieldsFields introduced by OKX after this crate version.
Trait Implementations§
Source§impl Clone for ChannelAcknowledgement
impl Clone for ChannelAcknowledgement
Source§fn clone(&self) -> ChannelAcknowledgement
fn clone(&self) -> ChannelAcknowledgement
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 ChannelAcknowledgement
impl Debug for ChannelAcknowledgement
Source§impl Default for ChannelAcknowledgement
impl Default for ChannelAcknowledgement
Source§fn default() -> ChannelAcknowledgement
fn default() -> ChannelAcknowledgement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelAcknowledgement
impl<'de> Deserialize<'de> for ChannelAcknowledgement
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 Freeze for ChannelAcknowledgement
impl RefUnwindSafe for ChannelAcknowledgement
impl Send for ChannelAcknowledgement
impl Sync for ChannelAcknowledgement
impl Unpin for ChannelAcknowledgement
impl UnsafeUnpin for ChannelAcknowledgement
impl UnwindSafe for ChannelAcknowledgement
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