pub struct ConversationData {
pub id: String,
pub name: String,
pub inputs: HashMap<String, String>,
pub introduction: String,
pub created_at: u64,
}
Expand description
会话数据
Fields§
§id: String
会话 ID
name: String
会话名称,默认为会话中用户最开始问题的截取。
inputs: HashMap<String, String>
用户输入参数。
introduction: String
开场白
created_at: u64
创建时间
Trait Implementations§
Source§impl Clone for ConversationData
impl Clone for ConversationData
Source§fn clone(&self) -> ConversationData
fn clone(&self) -> ConversationData
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 moreSource§impl Debug for ConversationData
impl Debug for ConversationData
Source§impl<'de> Deserialize<'de> for ConversationData
impl<'de> Deserialize<'de> for ConversationData
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 ConversationData
impl RefUnwindSafe for ConversationData
impl Send for ConversationData
impl Sync for ConversationData
impl Unpin for ConversationData
impl UnwindSafe for ConversationData
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