Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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