pub struct WebSocketSubscription {
pub method: String,
pub params: SmallVec<[String; 8]>,
pub id: u64,
}Expand description
Base structure for WebSocket subscriptions
Fields§
§method: StringMethod (e.g., SUBSCRIBE, UNSUBSCRIBE)
params: SmallVec<[String; 8]>List of channels to subscribe to
id: u64Request ID for tracking the subscription
Trait Implementations§
Source§impl Debug for WebSocketSubscription
impl Debug for WebSocketSubscription
Source§impl<'de> Deserialize<'de> for WebSocketSubscription
impl<'de> Deserialize<'de> for WebSocketSubscription
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 WebSocketSubscription
impl RefUnwindSafe for WebSocketSubscription
impl Send for WebSocketSubscription
impl Sync for WebSocketSubscription
impl Unpin for WebSocketSubscription
impl UnwindSafe for WebSocketSubscription
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