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::collections::HashSet;

use serde::{Deserialize, Serialize};
use serde_with::serde_as;

use crate::model::MerkleHash;
use crate::model::merkle_tree::merkle_hash::MerkleHashAsString;
use crate::view::StatusMessage;

use utoipa::ToSchema;

#[serde_as]
#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct MerkleHashes {
    #[serde_as(as = "HashSet<MerkleHashAsString>")]
    pub hashes: HashSet<MerkleHash>,
}

#[serde_as]
#[derive(Deserialize, Serialize, Debug, ToSchema)]
pub struct MerkleHashesResponse {
    #[serde(flatten)]
    pub status: StatusMessage,
    #[serde_as(as = "HashSet<MerkleHashAsString>")]
    pub hashes: HashSet<MerkleHash>,
}