#[non_exhaustive]pub struct CreateEvalRunRequest {
pub data_source: Value,
pub name: Option<String>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/evals/{eval_id}/runs.
中文:POST /v1/evals/{eval_id}/runs 的请求体。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_source: ValueEN: Details about the run data source. 中文:run 数据源的详细信息。
name: Option<String>EN: Optional run name. 中文:可选的 run 名称。
metadata: BTreeMap<String, String>EN: Optional metadata. 中文:可选元数据。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl CreateEvalRunRequest
impl CreateEvalRunRequest
Sourcepub fn builder() -> CreateEvalRunRequestBuilder
pub fn builder() -> CreateEvalRunRequestBuilder
EN: Starts building an eval run creation request. 中文:开始构建 eval run 创建请求。
Trait Implementations§
Source§impl Clone for CreateEvalRunRequest
impl Clone for CreateEvalRunRequest
Source§fn clone(&self) -> CreateEvalRunRequest
fn clone(&self) -> CreateEvalRunRequest
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 Debug for CreateEvalRunRequest
impl Debug for CreateEvalRunRequest
Source§impl PartialEq for CreateEvalRunRequest
impl PartialEq for CreateEvalRunRequest
Source§fn eq(&self, other: &CreateEvalRunRequest) -> bool
fn eq(&self, other: &CreateEvalRunRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateEvalRunRequest
impl Serialize for CreateEvalRunRequest
impl StructuralPartialEq for CreateEvalRunRequest
Auto Trait Implementations§
impl Freeze for CreateEvalRunRequest
impl RefUnwindSafe for CreateEvalRunRequest
impl Send for CreateEvalRunRequest
impl Sync for CreateEvalRunRequest
impl Unpin for CreateEvalRunRequest
impl UnsafeUnpin for CreateEvalRunRequest
impl UnwindSafe for CreateEvalRunRequest
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