pub struct AICardReplier { /* private fields */ }Expand description
AI 卡片回复器
Implementations§
Source§impl AICardReplier
impl AICardReplier
Sourcepub fn new(inner: CardReplier) -> Self
pub fn new(inner: CardReplier) -> Self
创建新的 AI 卡片回复器
Sourcepub fn inner(&self) -> &CardReplier
pub fn inner(&self) -> &CardReplier
获取内部 CardReplier 的引用
Sourcepub async fn start(
&self,
card_template_id: &str,
card_data: &Value,
recipients: Option<&[String]>,
support_forward: bool,
) -> Result<String>
pub async fn start( &self, card_template_id: &str, card_data: &Value, recipients: Option<&[String]>, support_forward: bool, ) -> Result<String>
AI 卡片创建(flowStatus = PROCESSING)
Sourcepub async fn finish(
&self,
card_instance_id: &str,
card_data: &Value,
) -> Result<()>
pub async fn finish( &self, card_instance_id: &str, card_data: &Value, ) -> Result<()>
AI 卡片完成(flowStatus = FINISHED)
Trait Implementations§
Source§impl Clone for AICardReplier
impl Clone for AICardReplier
Source§fn clone(&self) -> AICardReplier
fn clone(&self) -> AICardReplier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AICardReplier
impl !RefUnwindSafe for AICardReplier
impl Send for AICardReplier
impl Sync for AICardReplier
impl Unpin for AICardReplier
impl UnsafeUnpin for AICardReplier
impl !UnwindSafe for AICardReplier
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