Make fields of PollingBuilder public

This commit is contained in:
Maybe Waffle 2022-07-05 00:07:15 +04:00
parent 430df0cefb
commit cd63dbf1e7

View file

@ -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>