pub struct GetUpdatesParams {
pub offset: Option<i64>,
pub limit: Option<u8>,
pub timeout: Option<u32>,
pub allowed_updates: Option<Vec<String>>,
}Expand description
Parameters sent with a getUpdates request.
Fields§
§offset: Option<i64>Identifier of the first update to return. Confirms all updates before this ID.
limit: Option<u8>Maximum number of updates to return (1–100).
timeout: Option<u32>Timeout in seconds for long polling. 0 for short polling.
allowed_updates: Option<Vec<String>>List of update types to receive. All types received if omitted.
Trait Implementations§
Source§impl Default for GetUpdatesParams
impl Default for GetUpdatesParams
Source§fn default() -> GetUpdatesParams
fn default() -> GetUpdatesParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetUpdatesParams
impl RefUnwindSafe for GetUpdatesParams
impl Send for GetUpdatesParams
impl Sync for GetUpdatesParams
impl Unpin for GetUpdatesParams
impl UnsafeUnpin for GetUpdatesParams
impl UnwindSafe for GetUpdatesParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more