use serde::{Deserialize, Serialize};
use std::collections::HashSet;

#[derive(Debug, Clone, Deserialize, PartialEq, Eq, Serialize)]
pub struct Code {
    #[serde(default)]
    #[serde(skip_serializing_if = "HashSet::is_empty")]
    pub ids: HashSet<String>,
    pub lang: Option<String>,
    pub text: String,
}
