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 crate::model::Branch;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

use super::StatusMessage;
#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchResponse {
    #[serde(flatten)]
    pub status: StatusMessage,
    pub branch: Branch,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchNew {
    pub name: String,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchName {
    pub branch_name: String,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchNewFromBranchName {
    pub new_name: String,
    pub from_name: String,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchNewFromCommitId {
    pub new_name: String,
    pub commit_id: String,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchUpdate {
    pub commit_id: String,
}

#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct BranchRemoteMerge {
    pub client_commit_id: String,
    pub server_commit_id: String,
}

#[derive(Serialize, Deserialize, Debug, ToSchema)]
pub struct ListBranchesResponse {
    #[serde(flatten)]
    pub status: StatusMessage,
    pub branches: Vec<Branch>,
}