pub struct RunGraderResponseMetadata {
pub name: String,
pub type: String,
pub errors: RunGraderResponseMetadataErrors,
pub execution_time: Number,
pub scores: IndexMap<String, Value>,
pub token_usage: Option<i64>,
pub sampled_model_name: Option<String>,
}
Fields§
§name: String
§type: String
§errors: RunGraderResponseMetadataErrors
§execution_time: Number
§scores: IndexMap<String, Value>
§token_usage: Option<i64>
§sampled_model_name: Option<String>
Implementations§
Source§impl RunGraderResponseMetadata
impl RunGraderResponseMetadata
Sourcepub fn builder() -> RunGraderResponseMetadataBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> RunGraderResponseMetadataBuilder<((), (), (), (), (), (), ())>
Create a builder for building RunGraderResponseMetadata
.
On the builder, call .name(...)
, .r#type(...)
, .errors(...)
, .execution_time(...)
, .scores(...)
, .token_usage(...)
(optional), .sampled_model_name(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RunGraderResponseMetadata
.
Trait Implementations§
Source§impl Clone for RunGraderResponseMetadata
impl Clone for RunGraderResponseMetadata
Source§fn clone(&self) -> RunGraderResponseMetadata
fn clone(&self) -> RunGraderResponseMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunGraderResponseMetadata
impl Debug for RunGraderResponseMetadata
Source§impl<'de> Deserialize<'de> for RunGraderResponseMetadata
impl<'de> Deserialize<'de> for RunGraderResponseMetadata
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
Source§impl PartialEq for RunGraderResponseMetadata
impl PartialEq for RunGraderResponseMetadata
Source§fn eq(&self, other: &RunGraderResponseMetadata) -> bool
fn eq(&self, other: &RunGraderResponseMetadata) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RunGraderResponseMetadata
Auto Trait Implementations§
impl Freeze for RunGraderResponseMetadata
impl RefUnwindSafe for RunGraderResponseMetadata
impl Send for RunGraderResponseMetadata
impl Sync for RunGraderResponseMetadata
impl Unpin for RunGraderResponseMetadata
impl UnwindSafe for RunGraderResponseMetadata
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