liboxen 0.50.0

Oxen is a fast, unstructured data version control, to help version large machine learning datasets written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::model::diff::change_type::ChangeType;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

#[derive(Deserialize, Serialize, Debug, Clone, ToSchema)]
pub struct LineDiff {
    pub modification: ChangeType,
    pub text: String,
}

#[derive(Default, Deserialize, Serialize, Debug, Clone, ToSchema)]
pub struct TextDiff {
    pub lines: Vec<LineDiff>,
    pub filename1: Option<String>,
    pub filename2: Option<String>,
}