pub struct SystemResponse {
pub model: String,
pub answers: HashMap<String, Answer, RandomState>,
pub usage: Usage,
}Expand description
Evaluation response payload containing answers to all submitted questions.
See https://docs.typesafe.ai/api#response-body for the canonical wire specification.
Fields§
§model: StringThe model backend that performed the evaluation. Required.
answers: HashMap<String, Answer, RandomState>One answer per question id. Required.
usage: UsageRequired token usage.
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 (const: unstable) · 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<SystemResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SystemResponse
impl JsonSchema for SystemResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SystemResponse
impl PartialEq for SystemResponse
Source§impl Serialize for SystemResponse
impl Serialize for SystemResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SystemResponse
Auto Trait Implementations§
impl Freeze for SystemResponse
impl RefUnwindSafe for SystemResponse
impl Send for SystemResponse
impl Sync for SystemResponse
impl Unpin for SystemResponse
impl UnsafeUnpin 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