pub struct RunGraderResponseMetadata {
pub name: String,
pub type: String,
pub errors: RunGraderResponseMetadataErrors,
pub execution_time: f64,
pub scores: HashMap<String, Value>,
pub token_usage: Option<u64>,
pub sampled_model_name: Option<String>,
}
Fields§
§name: String
§type: String
§errors: RunGraderResponseMetadataErrors
§execution_time: f64
§scores: HashMap<String, Value>
§token_usage: Option<u64>
§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§fn clone_from(&mut self, source: &Self)
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
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