pub struct TrainingDataExport {
pub events: Vec<ClaudeStreamEvent>,
pub metrics: PerformanceMetrics,
pub metadata: ExportMetadata,
}
Expand description
Training data export format
Fields§
§events: Vec<ClaudeStreamEvent>
§metrics: PerformanceMetrics
§metadata: ExportMetadata
Implementations§
Source§impl TrainingDataExport
impl TrainingDataExport
Sourcepub async fn to_json_file(&self, path: &str) -> Result<()>
pub async fn to_json_file(&self, path: &str) -> Result<()>
Export to JSON file
Sourcepub async fn to_jsonl_file(&self, path: &str) -> Result<()>
pub async fn to_jsonl_file(&self, path: &str) -> Result<()>
Export to JSONL format (one event per line)
Trait Implementations§
Source§impl Clone for TrainingDataExport
impl Clone for TrainingDataExport
Source§fn clone(&self) -> TrainingDataExport
fn clone(&self) -> TrainingDataExport
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrainingDataExport
impl Debug for TrainingDataExport
Source§impl<'de> Deserialize<'de> for TrainingDataExport
impl<'de> Deserialize<'de> for TrainingDataExport
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 Freeze for TrainingDataExport
impl RefUnwindSafe for TrainingDataExport
impl Send for TrainingDataExport
impl Sync for TrainingDataExport
impl Unpin for TrainingDataExport
impl UnwindSafe for TrainingDataExport
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