pub struct ScoreBody {
pub id: Option<Option<String>>,
pub trace_id: Option<Option<String>>,
pub session_id: Option<Option<String>>,
pub observation_id: Option<Option<String>>,
pub dataset_run_id: Option<Option<String>>,
pub name: String,
pub environment: Option<Option<String>>,
pub value: Box<CreateScoreValue>,
pub comment: Option<Option<String>>,
pub metadata: Option<Option<Value>>,
pub data_type: Option<ScoreDataType>,
pub config_id: Option<Option<String>>,
}Fields§
§id: Option<Option<String>>§trace_id: Option<Option<String>>§session_id: Option<Option<String>>§observation_id: Option<Option<String>>§dataset_run_id: Option<Option<String>>§name: String§environment: Option<Option<String>>§value: Box<CreateScoreValue>§comment: Option<Option<String>>§metadata: Option<Option<Value>>§data_type: Option<ScoreDataType>§config_id: Option<Option<String>>Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config’s range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config’s max and min values
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScoreBody
impl<'de> Deserialize<'de> for ScoreBody
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 ScoreBody
Auto Trait Implementations§
impl Freeze for ScoreBody
impl RefUnwindSafe for ScoreBody
impl Send for ScoreBody
impl Sync for ScoreBody
impl Unpin for ScoreBody
impl UnwindSafe for ScoreBody
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