Skip to main content

ToReplyRequest

Trait ToReplyRequest 

Source
pub trait ToReplyRequest<'b> {
    type Request: Request;

    // Required method
    fn to_reply_request<M>(&'b self, message: M) -> Self::Request
       where M: ToMessageId + ToSourceChat;
}
Expand description

Use this trait to convert a complex type to corresponding request and reply to the message.

Required Associated Types§

Source

type Request: Request

Request type.

Required Methods§

Source

fn to_reply_request<M>(&'b self, message: M) -> Self::Request

Convert type to request and reply to the message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§