pub struct GenaiCreateModelEvaluationRunBodyStarMetric {
pub metric_uuid: Option<String>,
pub name: Option<String>,
pub success_threshold: Option<f32>,
pub success_threshold_pct: Option<i32>,
}Expand description
GenaiCreateModelEvaluationRunBodyStarMetric
JSON schema
{
"type": "object",
"properties": {
"metric_uuid": {
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": "string"
},
"name": {
"examples": [
"example name"
],
"type": "string"
},
"success_threshold": {
"description": "The success threshold for the star metric.\nThis is a value that the metric must reach to be considered successful.",
"examples": [
123
],
"type": "number",
"format": "float"
},
"success_threshold_pct": {
"description": "The success threshold for the star metric.\nThis is a percentage value between 0 and 100.",
"examples": [
123
],
"type": "integer",
"format": "int32"
}
}
}Fields§
§metric_uuid: Option<String>§name: Option<String>§success_threshold: Option<f32>§success_threshold_pct: Option<i32>The success threshold for the star metric. This is a percentage value between 0 and 100.
Trait Implementations§
Source§impl Clone for GenaiCreateModelEvaluationRunBodyStarMetric
impl Clone for GenaiCreateModelEvaluationRunBodyStarMetric
Source§fn clone(&self) -> GenaiCreateModelEvaluationRunBodyStarMetric
fn clone(&self) -> GenaiCreateModelEvaluationRunBodyStarMetric
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<'de> Deserialize<'de> for GenaiCreateModelEvaluationRunBodyStarMetric
impl<'de> Deserialize<'de> for GenaiCreateModelEvaluationRunBodyStarMetric
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 From<&GenaiCreateModelEvaluationRunBodyStarMetric> for GenaiCreateModelEvaluationRunBodyStarMetric
impl From<&GenaiCreateModelEvaluationRunBodyStarMetric> for GenaiCreateModelEvaluationRunBodyStarMetric
Source§fn from(value: &GenaiCreateModelEvaluationRunBodyStarMetric) -> Self
fn from(value: &GenaiCreateModelEvaluationRunBodyStarMetric) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenaiCreateModelEvaluationRunBodyStarMetric
impl RefUnwindSafe for GenaiCreateModelEvaluationRunBodyStarMetric
impl Send for GenaiCreateModelEvaluationRunBodyStarMetric
impl Sync for GenaiCreateModelEvaluationRunBodyStarMetric
impl Unpin for GenaiCreateModelEvaluationRunBodyStarMetric
impl UnsafeUnpin for GenaiCreateModelEvaluationRunBodyStarMetric
impl UnwindSafe for GenaiCreateModelEvaluationRunBodyStarMetric
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