Files
desi_explorer/api/src/models.rs
T
2026-08-31 13:17:05 -06:00

23 lines
587 B
Rust

use serde::Serialize;
/// Catalog metadata for a DESI data release/survey.
#[derive(Debug, Clone, Serialize)]
pub struct Catalog {
pub name: String,
pub release: String,
pub description: &'static str,
pub object_count: Option<u64>,
}
/// A single catalog object (galaxy / quasar / star) with its survey
/// coordinates. `ra` and `dec` are in degrees; `redshift` is dimensionless.
#[derive(Debug, Serialize)]
pub struct CatalogObject {
pub id: String,
pub catalog: String,
pub object_type: String,
pub ra: f64,
pub dec: f64,
pub redshift: f64,
}