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§
Sourcefn send_message(
&self,
message: &str,
) -> impl Future<Output = Result<Response<MessageResponse>, Error>> + Send
fn send_message( &self, message: &str, ) -> impl Future<Output = Result<Response<MessageResponse>, Error>> + Send
Sourcefn set_chat_notice<'a>(&'a self) -> SetChatNotice<'a>
fn set_chat_notice<'a>(&'a self) -> SetChatNotice<'a>
Sourcefn get_chat_settings(
&self,
) -> impl Future<Output = Result<Response<ChatSettingResponse>, Error>> + Send
fn get_chat_settings( &self, ) -> impl Future<Output = Result<Response<ChatSettingResponse>, Error>> + Send
Sourcefn set_chat_settings<'a>(&'a self) -> SetChatSettings<'a>
fn set_chat_settings<'a>(&'a self) -> SetChatSettings<'a>
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.