pub struct BenchSample<L = String> {
pub id: String,
pub input: Vec<u8>,
pub label: L,
pub source: String,
pub metadata: HashMap<String, Value>,
}Expand description
A labeled data point in an evaluation dataset.
Generic over label type L for type-safe label handling.
Fields§
§id: StringUnique sample identifier.
input: Vec<u8>Raw input data (file contents).
label: LGround-truth label.
source: StringOptional source reference.
metadata: HashMap<String, Value>Additional metadata.
Trait Implementations§
Source§impl<L: Clone> Clone for BenchSample<L>
impl<L: Clone> Clone for BenchSample<L>
Source§impl<L: Debug> Debug for BenchSample<L>
impl<L: Debug> Debug for BenchSample<L>
Source§impl<'de, L> Deserialize<'de> for BenchSample<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for BenchSample<L>where
L: Deserialize<'de>,
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
Auto Trait Implementations§
impl<L> Freeze for BenchSample<L>where
L: Freeze,
impl<L> RefUnwindSafe for BenchSample<L>where
L: RefUnwindSafe,
impl<L> Send for BenchSample<L>where
L: Send,
impl<L> Sync for BenchSample<L>where
L: Sync,
impl<L> Unpin for BenchSample<L>where
L: Unpin,
impl<L> UnsafeUnpin for BenchSample<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for BenchSample<L>where
L: UnwindSafe,
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