pub struct DatasetEntry {
pub request_id: String,
pub prompt_tokens: Vec<u32>,
pub max_output_tokens: Option<u32>,
}Expand description
A processed dataset entry ready for simulation
Fields§
§request_id: String§prompt_tokens: Vec<u32>§max_output_tokens: Option<u32>Implementations§
Source§impl DatasetEntry
impl DatasetEntry
pub fn num_prompt_tokens(&self) -> u32
Trait Implementations§
Source§impl Clone for DatasetEntry
impl Clone for DatasetEntry
Source§fn clone(&self) -> DatasetEntry
fn clone(&self) -> DatasetEntry
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 DatasetEntry
impl RefUnwindSafe for DatasetEntry
impl Send for DatasetEntry
impl Sync for DatasetEntry
impl Unpin for DatasetEntry
impl UnsafeUnpin for DatasetEntry
impl UnwindSafe for DatasetEntry
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