Trait teloxide_core::payloads::GetUpdatesSetters

source ·
pub trait GetUpdatesSetters: HasPayload<Payload = GetUpdates> + Sized {
    // Provided methods
    fn offset(self, value: i32) -> Self { ... }
    fn limit(self, value: u8) -> Self { ... }
    fn timeout(self, value: u32) -> Self { ... }
    fn allowed_updates<T>(self, value: T) -> Self
       where T: IntoIterator<Item = AllowedUpdate> { ... }
}
Expand description

Setters for fields of GetUpdates

Provided Methods§

source

fn offset(self, value: i32) -> Self

Setter for offset field.

source

fn limit(self, value: u8) -> Self

Setter for limit field.

source

fn timeout(self, value: u32) -> Self

Setter for timeout field.

source

fn allowed_updates<T>(self, value: T) -> Self
where T: IntoIterator<Item = AllowedUpdate>,

Setter for allowed_updates field.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P> GetUpdatesSetters for P
where P: HasPayload<Payload = GetUpdates>,