gaia_access 0.1.1

Access the Gaia ESA Archive for astronomical data.
Documentation
// This code is generated by generate_code.py, do not modify it manually.

//! This module contains all the known columns in the sso_source table.

use crate::traits::{Column, Table};

/// This table contains data related to Solar System objects observed by Gaia. The quantities in the table are derived from data reduction and are associated with single objects.
#[allow(non_camel_case_types)]
pub struct sso_source;

impl Table for sso_source {
    fn string(&self) -> String {
        "sso_source".to_string()
    }
}

/// The columns in the sso_source table.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
    /// Solution Identifier
    solution_id,
    /// Source identifier
    source_id,
    /// number of observations
    num_of_obs,
    /// Minor Planet number
    number_mp,
    /// standard MPC denomination of the asteroid
    denomination,
    /// TCB epoch for the state vector
    epoch_state_vector,
    /// var-covar matrix on elliptical elements at reference Epoch
    orbital_elements_var_covar_matrix,
    /// Heliocentric State Vector at reference Epoch
    h_state_vector,
    /// Covariance matrix of the State Vector
    h_state_vector_var_covar_matrix,
}

impl Column for Col {}

#[cfg(test)]
pub fn collect_known(map: &mut std::collections::HashMap<String, Vec<String>>) {
    let mut col_strings = Vec::new();
    col_strings.push(Col::solution_id.to_string());
    col_strings.push(Col::source_id.to_string());
    col_strings.push(Col::num_of_obs.to_string());
    col_strings.push(Col::number_mp.to_string());
    col_strings.push(Col::denomination.to_string());
    col_strings.push(Col::epoch_state_vector.to_string());
    col_strings.push(Col::orbital_elements_var_covar_matrix.to_string());
    col_strings.push(Col::h_state_vector.to_string());
    col_strings.push(Col::h_state_vector_var_covar_matrix.to_string());
    map.insert(sso_source.string(), col_strings);
}