pub struct CustomBot<'a> { /* private fields */ }Expand description
自定义机器人
Implementations§
Source§impl CustomBot<'_>
impl CustomBot<'_>
pub async fn send_message<T>(
&self,
message: T,
) -> SDKResult<BaseResponse<RawResponse>>where
T: SendMessageTrait,
Sourcepub async fn send_card(
&self,
message: MessageCardTemplate,
) -> SDKResult<BaseResponse<RawResponse>>
pub async fn send_card( &self, message: MessageCardTemplate, ) -> SDKResult<BaseResponse<RawResponse>>
发送飞书卡片消息, 因为自定义机器人发送飞书卡片消息的格式比较特殊,所以单独提供一个方法
Auto Trait Implementations§
impl<'a> Freeze for CustomBot<'a>
impl<'a> !RefUnwindSafe for CustomBot<'a>
impl<'a> Send for CustomBot<'a>
impl<'a> Sync for CustomBot<'a>
impl<'a> Unpin for CustomBot<'a>
impl<'a> !UnwindSafe for CustomBot<'a>
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