pub struct ScoreBody {Show 13 fields
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 queue_id: 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>>§queue_id: Option<Option<String>>The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)