pub struct DatasetMeta {
pub name: &'static str,
pub description: &'static str,
pub url: &'static str,
pub format: DatasetFormat,
}Expand description
Static metadata describing a benchmark dataset.
Instances are stored in DatasetRegistry and can be retrieved by name.
The url field points to the canonical source so users know where to
download the data.
§Examples
use zeph_bench::{DatasetMeta, DatasetFormat};
let meta = DatasetMeta {
name: "example",
description: "An example dataset",
url: "https://example.com/dataset",
format: DatasetFormat::Jsonl,
};
assert_eq!(meta.name, "example");Fields§
§name: &'static strShort identifier used in CLI arguments (e.g. "gaia").
description: &'static strOne-line human-readable description.
url: &'static strCanonical download URL (HuggingFace, GitHub, etc.).
format: DatasetFormatFile format expected by the corresponding crate::DatasetLoader.
Trait Implementations§
Source§impl Clone for DatasetMeta
impl Clone for DatasetMeta
Source§fn clone(&self) -> DatasetMeta
fn clone(&self) -> DatasetMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatasetMeta
impl RefUnwindSafe for DatasetMeta
impl Send for DatasetMeta
impl Sync for DatasetMeta
impl Unpin for DatasetMeta
impl UnsafeUnpin for DatasetMeta
impl UnwindSafe for DatasetMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request