liboxen 0.53.0

Oxen is a fast data version control system, built with machine learning training data in mind. Designed to handle terabytes of data with ease, using a workflow similar to git. Version both structured and unstructured data of any modality: text, images, video, audio, CSV, Parquet, JSONL, model checkpoints, and more. liboxen is the embeddable core library behind the oxen CLI and server, which power fine tuning and inference pipelines for multimodal LLMs, image models, and video models on Oxen.ai.
use std::path::PathBuf;

use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

use crate::model::diff::diff_entry_status::DiffEntryStatus;

use super::StatusMessage;
#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct DirTreeDiffResponse {
    pub dirs: Vec<DirDiffTreeSummary>,
    #[serde(flatten)]
    pub status: StatusMessage,
}

#[derive(Deserialize, Serialize, Debug, Clone, ToSchema)]
pub struct DirDiffTreeSummary {
    #[schema(value_type = String)]
    pub name: PathBuf,
    pub status: DiffEntryStatus,
    pub num_subdirs: usize,
    pub can_display: bool,
    pub children: Vec<DirDiffStatus>,
}

#[derive(Deserialize, Serialize, Debug, Clone, ToSchema)]
pub struct DirDiffStatus {
    #[schema(value_type = String)]
    pub name: PathBuf,
    pub status: DiffEntryStatus,
}