pub trait ToRequest<'b> {
    type Request: Request;

    fn to_request<C>(&'b self, chat: C) -> Self::Request
    where
        C: ToChatRef
; }
Expand description

Use this trait to convert a complex type to corresponding request and send it to the chat.

Required Associated Types§

Request type.

Required Methods§

Convert type to request and send it to the chat.

Implementors§