pub struct StreamTaskStopRequest {
pub task_id: String,
pub user: String,
}
Expand description
停止响应请求
Fields§
§task_id: String
任务 ID,可在流式返回 Chunk 中获取
user: String
用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
Trait Implementations§
Source§impl Clone for StreamTaskStopRequest
impl Clone for StreamTaskStopRequest
Source§fn clone(&self) -> StreamTaskStopRequest
fn clone(&self) -> StreamTaskStopRequest
Returns a copy 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 moreSource§impl Debug for StreamTaskStopRequest
impl Debug for StreamTaskStopRequest
Source§impl Default for StreamTaskStopRequest
impl Default for StreamTaskStopRequest
Source§fn default() -> StreamTaskStopRequest
fn default() -> StreamTaskStopRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamTaskStopRequest
impl<'de> Deserialize<'de> for StreamTaskStopRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamTaskStopRequest
impl RefUnwindSafe for StreamTaskStopRequest
impl Send for StreamTaskStopRequest
impl Sync for StreamTaskStopRequest
impl Unpin for StreamTaskStopRequest
impl UnwindSafe for StreamTaskStopRequest
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