[−][src]Trait telegram_bot::types::requests::RequestType
Associated Types
Loading content...Required methods
pub fn serialize(
options: Self::Options,
request: &Self::Request
) -> Result<HttpRequest, Error>
[src]
options: Self::Options,
request: &Self::Request
) -> Result<HttpRequest, Error>
Implementors
impl RequestType for DetachedRequestType
[src]
type Options = ()
type Request = Result<HttpRequest, Error>
pub fn serialize(
_options: <DetachedRequestType as RequestType>::Options,
request: &<DetachedRequestType as RequestType>::Request
) -> Result<HttpRequest, Error>
[src]
_options: <DetachedRequestType as RequestType>::Options,
request: &<DetachedRequestType as RequestType>::Request
) -> Result<HttpRequest, Error>
impl<Request> RequestType for JsonRequestType<Request> where
Request: Serialize,
[src]
Request: Serialize,
type Options = RequestUrl
type Request = Request
pub fn serialize(
url: <JsonRequestType<Request> as RequestType>::Options,
request: &<JsonRequestType<Request> as RequestType>::Request
) -> Result<HttpRequest, Error>
[src]
url: <JsonRequestType<Request> as RequestType>::Options,
request: &<JsonRequestType<Request> as RequestType>::Request
) -> Result<HttpRequest, Error>
impl<Request> RequestType for MultipartRequestType<Request> where
Request: ToMultipart,
[src]
Request: ToMultipart,
type Options = RequestUrl
type Request = Request
pub fn serialize(
url: <MultipartRequestType<Request> as RequestType>::Options,
request: &<MultipartRequestType<Request> as RequestType>::Request
) -> Result<HttpRequest, Error>
[src]
url: <MultipartRequestType<Request> as RequestType>::Options,
request: &<MultipartRequestType<Request> as RequestType>::Request
) -> Result<HttpRequest, Error>