pub struct SystemResponse {
pub query_id: String,
pub retrieved_docs: Vec<RetrievedDocument>,
pub generated_answer: Option<String>,
pub timing: SystemTiming,
pub metadata: HashMap<String, Value>,
}Expand description
System response for evaluation
Fields§
§query_id: StringQuery ID
retrieved_docs: Vec<RetrievedDocument>Retrieved documents
generated_answer: Option<String>Generated answer (if applicable)
timing: SystemTimingSystem timing information
metadata: HashMap<String, Value>Response metadata
Trait Implementations§
Source§impl Clone for SystemResponse
impl Clone for SystemResponse
Source§fn clone(&self) -> SystemResponse
fn clone(&self) -> SystemResponse
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 SystemResponse
impl Debug for SystemResponse
Source§impl<'de> Deserialize<'de> for SystemResponse
impl<'de> Deserialize<'de> for SystemResponse
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 SystemResponse
impl RefUnwindSafe for SystemResponse
impl Send for SystemResponse
impl Sync for SystemResponse
impl Unpin for SystemResponse
impl UnwindSafe for SystemResponse
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