[][src]Struct telexide::api::types::GetUpdates

pub struct GetUpdates {
    pub offset: Option<i64>,
    pub limit: Option<usize>,
    pub timeout: Option<usize>,
    pub allowed_updates: Option<Vec<UpdateType>>,
}

struct for holding data needed to call get_updates

Fields

offset: Option<i64>limit: Option<usize>timeout: Option<usize>allowed_updates: Option<Vec<UpdateType>>

Implementations

impl GetUpdates[src]

pub fn new() -> Self[src]

pub fn set_offset(&mut self, offset: i64) -> &mut Self[src]

pub fn set_limit(&mut self, limit: usize) -> &mut Self[src]

pub fn set_timeout(&mut self, timeout: usize) -> &mut Self[src]

pub fn set_allowed_updates(
    &mut self,
    allowed_updates: Vec<UpdateType>
) -> &mut Self
[src]

pub fn add_allowed_updates(&mut self, allowed_update: UpdateType) -> &mut Self[src]

Trait Implementations

impl Clone for GetUpdates[src]

impl Debug for GetUpdates[src]

impl Default for GetUpdates[src]

impl<'de> Deserialize<'de> for GetUpdates[src]

impl PartialEq<GetUpdates> for GetUpdates[src]

impl Serialize for GetUpdates[src]

impl StructuralPartialEq for GetUpdates[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any