Skip to main content

ChatAPI

Trait ChatAPI 

Source
pub trait ChatAPI: BaseClient {
    // Required methods
    fn send_message(
        &self,
        message: &str,
    ) -> impl Future<Output = Result<Response<MessageResponse>, Error>> + Send;
    fn set_chat_notice<'a>(&'a self) -> SetChatNotice<'a>;
    fn get_chat_settings(
        &self,
    ) -> impl Future<Output = Result<Response<ChatSettingResponse>, Error>> + Send;
    fn set_chat_settings<'a>(&'a self) -> SetChatSettings<'a>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§