[][src]Trait rutebot::requests::Request

pub trait Request: Serialize {
    type ResponseType;
    fn method(&self) -> &'static str;
}

Basic request type.

Associated Types

Loading content...

Required methods

fn method(&self) -> &'static str

Loading content...

Implementors

impl Request for GetMe[src]

type ResponseType = User

impl<'a> Request for GetFileRequest<'a>[src]

type ResponseType = File

fn method(&self) -> &'static str[src]

Returns telegram bot api method name

impl<'a> Request for GetUpdatesRequest<'a>[src]

type ResponseType = Vec<Update>

impl<'a, 'b, 'c, 'd, 'e> Request for SendTextMessageRequest<'a, 'b, 'c, 'd, 'e>[src]

type ResponseType = Message

Loading content...