Skip to main content

IntoChatMessage

Trait IntoChatMessage 

Source
pub trait IntoChatMessage {
    // Required method
    fn into_chat_message(self) -> ChatMessage;
}
Expand description

So send("hola") works as well as send(ChatMessage { … }).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoChatMessage for &str

Source§

impl IntoChatMessage for ChatMessage

Source§

impl IntoChatMessage for String

Implementors§