Files
desi_explorer/api/src/models.rs
T
sam_oneal 1443369f6c
CI / Detect changed paths (pull_request) Failing after 33m59s
CI / Infra unit tests, vet, and preview (pull_request) Has been skipped
CI / API unit tests and lint (pull_request) Failing after 31m0s
CI / Odin unit tests and build (pull_request) Failing after 31m9s
add dev resources; plumb GUI_ENV_FILE/API_ENV_FILE/API_DESI_DATA into run targets
2026-09-07 14:55:49 -06:00

23 lines
629 B
Rust

use serde::{Deserialize, Serialize};
/// Catalog metadata for a DESI data release/survey.
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Catalog {
pub name: String,
pub release: String,
pub description: String,
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, Clone, Deserialize, Serialize)]
pub struct CatalogObject {
pub id: String,
pub catalog: String,
pub object_type: String,
pub ra: f64,
pub dec: f64,
pub redshift: f64,
}