mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +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.
|
||||
///
|
||||
/// Can be created by [`Polling::builder`].
|
||||
#[non_exhaustive]
|
||||
#[must_use = "`PollingBuilder` is a builder and does nothing unless used"]
|
||||
pub struct PollingBuilder<R> {
|
||||
bot: R,
|
||||
timeout: Option<Duration>,
|
||||
limit: Option<u8>,
|
||||
allowed_updates: Option<Vec<AllowedUpdate>>,
|
||||
drop_pending_updates: bool,
|
||||
pub bot: R,
|
||||
pub timeout: Option<Duration>,
|
||||
pub limit: Option<u8>,
|
||||
pub allowed_updates: Option<Vec<AllowedUpdate>>,
|
||||
pub drop_pending_updates: bool,
|
||||
}
|
||||
|
||||
impl<R> PollingBuilder<R>
|
||||
|
|
Loading…
Reference in a new issue