pub struct SessionChatResponse {
pub session_id: String,
pub response: ChatResponse,
pub context: SessionContext,
}Expand description
Response from session-based chat.
Fields§
§session_id: StringThe session identifier (may be newly created).
response: ChatResponseThe chat response.
context: SessionContextSession context metadata.
Trait Implementations§
Source§impl Clone for SessionChatResponse
impl Clone for SessionChatResponse
Source§fn clone(&self) -> SessionChatResponse
fn clone(&self) -> SessionChatResponse
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 SessionChatResponse
impl Debug for SessionChatResponse
Source§impl<'de> Deserialize<'de> for SessionChatResponse
impl<'de> Deserialize<'de> for SessionChatResponse
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 SessionChatResponse
impl RefUnwindSafe for SessionChatResponse
impl Send for SessionChatResponse
impl Sync for SessionChatResponse
impl Unpin for SessionChatResponse
impl UnsafeUnpin for SessionChatResponse
impl UnwindSafe for SessionChatResponse
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