mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Make fields of PollingBuilder
public
This commit is contained in:
parent
430df0cefb
commit
cd63dbf1e7
1 changed files with 6 additions and 5 deletions
|
@ -24,13 +24,14 @@ use crate::{
|
||||||
/// Builder for polling update listener.
|
/// Builder for polling update listener.
|
||||||
///
|
///
|
||||||
/// Can be created by [`Polling::builder`].
|
/// Can be created by [`Polling::builder`].
|
||||||
|
#[non_exhaustive]
|
||||||
#[must_use = "`PollingBuilder` is a builder and does nothing unless used"]
|
#[must_use = "`PollingBuilder` is a builder and does nothing unless used"]
|
||||||
pub struct PollingBuilder<R> {
|
pub struct PollingBuilder<R> {
|
||||||
bot: R,
|
pub bot: R,
|
||||||
timeout: Option<Duration>,
|
pub timeout: Option<Duration>,
|
||||||
limit: Option<u8>,
|
pub limit: Option<u8>,
|
||||||
allowed_updates: Option<Vec<AllowedUpdate>>,
|
pub allowed_updates: Option<Vec<AllowedUpdate>>,
|
||||||
drop_pending_updates: bool,
|
pub drop_pending_updates: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R> PollingBuilder<R>
|
impl<R> PollingBuilder<R>
|
||||||
|
|
Loading…
Reference in a new issue