[][src]Struct rutebot::client::ApiRequest

#[must_use = "ApiRequest should be sent"]pub struct ApiRequest<TResponse: DeserializeOwned> { /* fields omitted */ }

Represents ready request to telegram bot api.

Methods

impl<TResponse: DeserializeOwned> ApiRequest<TResponse>[src]

pub async fn send(self) -> Result<TResponse, Error>[src]

Send request to telegram bot api.

Example

let future = request.send();

Auto Trait Implementations

impl<TResponse> !RefUnwindSafe for ApiRequest<TResponse>

impl<TResponse> Send for ApiRequest<TResponse> where
    TResponse: Send

impl<TResponse> Sync for ApiRequest<TResponse> where
    TResponse: Sync

impl<TResponse> Unpin for ApiRequest<TResponse> where
    TResponse: Unpin

impl<TResponse> !UnwindSafe for ApiRequest<TResponse>

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> From<T> for T[src]

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

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.