[][src]Trait telegram_bot::types::requests::RequestType

pub trait RequestType {
    type Options;
    type Request;
    pub fn serialize(
        options: Self::Options,
        request: &Self::Request
    ) -> Result<HttpRequest, Error>; }

Associated Types

type Options[src]

type Request[src]

Loading content...

Required methods

pub fn serialize(
    options: Self::Options,
    request: &Self::Request
) -> Result<HttpRequest, Error>
[src]

Loading content...

Implementors

impl RequestType for DetachedRequestType[src]

impl<Request> RequestType for JsonRequestType<Request> where
    Request: Serialize
[src]

type Options = RequestUrl

type Request = Request

impl<Request> RequestType for MultipartRequestType<Request> where
    Request: ToMultipart
[src]

type Options = RequestUrl

type Request = Request

Loading content...