Files
brk/crates/brk_cohort/src/cohort_name.rs
T
2025-12-30 22:49:47 +01:00

16 lines
425 B
Rust

use serde::Serialize;
/// Display names for a cohort with id (for storage/API), short (for charts), and long (for tooltips/labels)
#[derive(Clone, Copy, Serialize)]
pub struct CohortName {
pub id: &'static str,
pub short: &'static str,
pub long: &'static str,
}
impl CohortName {
pub const fn new(id: &'static str, short: &'static str, long: &'static str) -> Self {
Self { id, short, long }
}
}