pub struct ChatClient { /* private fields */ }Implementations§
Source§impl ChatClient
impl ChatClient
pub fn new() -> Self
Sourcepub async fn send_message(&self, request: SendMessageRequest) -> Result<Value>
pub async fn send_message(&self, request: SendMessageRequest) -> Result<Value>
Send a message to a chat
See: https://open.feishu.cn/document/server-docs/im-v1/message/create
pub async fn send_text_message( &self, chat_id: &str, text: &str, ) -> Result<Value>
Sourcepub async fn send_markdown_message(
&self,
chat_id: &str,
title: &str,
content: &str,
) -> Result<Value>
pub async fn send_markdown_message( &self, chat_id: &str, title: &str, content: &str, ) -> Result<Value>
Send a markdown message to a chat
See: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json#45e0953e
Sourcepub async fn get_chat_group_list(&self) -> Result<Vec<ChatInfoItem>>
pub async fn get_chat_group_list(&self) -> Result<Vec<ChatInfoItem>>
Get a list of chats
See: https://open.feishu.cn/document/server-docs/im-v1/chat/list
Auto Trait Implementations§
impl Freeze for ChatClient
impl RefUnwindSafe for ChatClient
impl Send for ChatClient
impl Sync for ChatClient
impl Unpin for ChatClient
impl UnsafeUnpin for ChatClient
impl UnwindSafe for ChatClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more