gaia_access 0.2.0

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 vari_compact_companion table.

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

/// This table describes the compact companion candidates.
#[allow(non_camel_case_types)]
pub struct vari_compact_companion;

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

/// The columns in the vari_compact_companion table.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
    /// Solution Identifier
    solution_id,
    /// Unique source identifier
    source_id,
    /// Orbital period
    period,
    /// Orbital period error
    period_error,
    /// G-band reference time
    t0_g,
    /// G-band reference time error
    t0_g_error,
    /// BP-band reference time
    t0_bp,
    /// BP-band reference time error
    t0_bp_error,
    /// RP-band reference time
    t0_rp,
    /// RP-band reference time error
    t0_rp_error,
    /// G-band harmonics
    harmonic_model_params_g,
    /// G-band harmonics errors
    harmonic_model_params_g_error,
    /// BP-band harmonics
    harmonic_model_params_bp,
    /// BP-band harmonics errors
    harmonic_model_params_bp_error,
    /// RP-band harmonics
    harmonic_model_params_rp,
    /// RP-band harmonics errors
    harmonic_model_params_rp_error,
    /// Harmonics model mean G-band magnitude
    model_mean_g,
    /// Harmonics model mean G-band magnitude error
    model_mean_g_error,
    /// Harmonics model mean BP-band magnitude
    model_mean_bp,
    /// Harmonics model mean BP-band magnitude error
    model_mean_bp_error,
    /// Harmonics model mean RP-band magnitude
    model_mean_rp,
    /// Harmonics model mean RP-band magnitude error
    model_mean_rp_error,
    /// Modified minimum mass ratio
    mod_min_mass_ratio,
    /// 15.9 percentile modified minimum mass ratio
    mod_min_mass_ratio_one_sigma,
    /// 0.135 percentile modified minimum mass ratio
    mod_min_mass_ratio_three_sigma,
    /// alpha ellipsoidal coefficient
    alpha,
}

impl Column for Col {}

#[cfg(test)]
/// Collects all the known columns in the vari_compact_companion table.
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::period.to_string());
    col_strings.push(Col::period_error.to_string());
    col_strings.push(Col::t0_g.to_string());
    col_strings.push(Col::t0_g_error.to_string());
    col_strings.push(Col::t0_bp.to_string());
    col_strings.push(Col::t0_bp_error.to_string());
    col_strings.push(Col::t0_rp.to_string());
    col_strings.push(Col::t0_rp_error.to_string());
    col_strings.push(Col::harmonic_model_params_g.to_string());
    col_strings.push(Col::harmonic_model_params_g_error.to_string());
    col_strings.push(Col::harmonic_model_params_bp.to_string());
    col_strings.push(Col::harmonic_model_params_bp_error.to_string());
    col_strings.push(Col::harmonic_model_params_rp.to_string());
    col_strings.push(Col::harmonic_model_params_rp_error.to_string());
    col_strings.push(Col::model_mean_g.to_string());
    col_strings.push(Col::model_mean_g_error.to_string());
    col_strings.push(Col::model_mean_bp.to_string());
    col_strings.push(Col::model_mean_bp_error.to_string());
    col_strings.push(Col::model_mean_rp.to_string());
    col_strings.push(Col::model_mean_rp_error.to_string());
    col_strings.push(Col::mod_min_mass_ratio.to_string());
    col_strings.push(Col::mod_min_mass_ratio_one_sigma.to_string());
    col_strings.push(Col::mod_min_mass_ratio_three_sigma.to_string());
    col_strings.push(Col::alpha.to_string());
    map.insert(vari_compact_companion.string(), col_strings);
}