pub trait Method {
type Response;
// Required method
fn into_payload(self) -> Payload;
}
Expand description
Represents an API method that can be executed by the Telegram Bot API client.
Required Associated Types§
Required Methods§
sourcefn into_payload(self) -> Payload
fn into_payload(self) -> Payload
Converts the method into a payload for an HTTP request.