pub struct AskResult {
    pub chat_response: String,
    pub context: Option<Option<Vec<SearchResponse>>>,
}Fields§
§chat_response: StringThe ask query. For example, "how to create a Tembo instance"
context: Option<Option<Vec<SearchResponse>>>an array of json objects referencing documents used to generate the response
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskResult
 
impl<'de> Deserialize<'de> for AskResult
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
impl StructuralPartialEq for AskResult
Auto Trait Implementations§
impl Freeze for AskResult
impl RefUnwindSafe for AskResult
impl Send for AskResult
impl Sync for AskResult
impl Unpin for AskResult
impl UnwindSafe for AskResult
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