Skip to content

Commit ef9491d

Browse files
committed
Export api::v2::updates enums as part of unofficial unstable API
Up until commit 9f937dd ("Switch to using new stream authentication request message format") we were exporting the api::v2::updates::Request enum, which formed part of our undocumented, unofficial, and unstable API. With said change, however, we missed to export the resulting two newly introduced enum types. Do it now.
1 parent 47a7e18 commit ef9491d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Unreleased
2+
----------
3+
- Exported `api::v2::updates::{Authenticate,Listen}` enums as part of
4+
unofficial unstable API
5+
6+
17
0.27.0
28
------
39
- Added support for overwriting default realtime data bar, quote, and

src/api/v2/updates.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ pub struct Authentication {
168168
/// A control message authentication request sent over a websocket
169169
/// channel.
170170
#[derive(Debug, Deserialize, Serialize)]
171+
// Part of unofficial unstable API.
172+
#[doc(hidden)]
171173
#[serde(tag = "action")]
172-
enum Authenticate<'d> {
174+
pub enum Authenticate<'d> {
173175
/// A request to authenticate with the server after a websocket
174176
/// connection was established.
175177
#[serde(rename = "auth")]
@@ -184,8 +186,10 @@ enum Authenticate<'d> {
184186

185187
/// A control message listen request sent over a websocket channel.
186188
#[derive(Debug, Deserialize, Serialize)]
189+
// Part of unofficial unstable API.
190+
#[doc(hidden)]
187191
#[serde(tag = "action", content = "data")]
188-
enum Listen<'d> {
192+
pub enum Listen<'d> {
189193
/// A request to listen to a particular stream.
190194
#[serde(rename = "listen")]
191195
Request(Streams<'d>),

0 commit comments

Comments
 (0)