Skip to content

Commit 0308086

Browse files
committed
Libs(Rust): expose polling endpoint consumer API as beta feature
1 parent 1762957 commit 0308086

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

rust/src/api/mod.rs

+12-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ mod background_task;
1111
mod endpoint;
1212
mod environment;
1313
mod event_type;
14+
#[cfg(feature = "svix_beta")]
15+
mod events_public;
1416
mod ingest;
1517
mod ingest_endpoint;
1618
mod ingest_source;
@@ -21,8 +23,6 @@ mod operational_webhook;
2123
mod operational_webhook_endpoint;
2224
mod statistics;
2325

24-
#[cfg(feature = "svix_beta")]
25-
pub use self::message::{V1MessageEventsParams, V1MessageEventsSubscriptionParams};
2626
pub use self::{
2727
application::{Application, ApplicationCreateOptions, ApplicationListOptions},
2828
authentication::{
@@ -68,6 +68,11 @@ pub use self::{
6868
},
6969
statistics::{Statistics, StatisticsAggregateAppStatsOptions},
7070
};
71+
#[cfg(feature = "svix_beta")]
72+
pub use self::{
73+
events_public::{EventsPublic, EventsPublicConsumerOptions, EventsPublicConsumerSeekOptions},
74+
message::{V1MessageEventsParams, V1MessageEventsSubscriptionParams},
75+
};
7176

7277
#[deprecated = "Use EndpointGetStatusOptions instead"]
7378
pub type EndpointStatsOptions = EndpointGetStatsOptions;
@@ -99,6 +104,11 @@ impl Svix {
99104
Environment::new(&self.cfg)
100105
}
101106

107+
#[cfg(feature = "svix_beta")]
108+
pub fn events_public(&self) -> EventsPublic<'_> {
109+
EventsPublic::new(&self.cfg)
110+
}
111+
102112
pub fn ingest(&self) -> Ingest<'_> {
103113
Ingest::new(&self.cfg)
104114
}

0 commit comments

Comments
 (0)