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

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

/// This table describes the Long Period Variable stars.
///
/// Some entries can be NaN when absent.
#[allow(non_camel_case_types)]
pub struct vari_long_period_variable;

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

/// The columns in the vari_long_period_variable 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,
    /// Frequency of the LPV
    frequency,
    /// Error on the frequency
    frequency_error,
    /// Amplitude of the LPV variability
    amplitude,
    /// Median of the pseudo-wavelength separations between the two highest peaks in RP spectra
    median_delta_wl_rp,
    /// Flag to mark C-stars
    is_cstar,
}

impl Column for Col {}

#[cfg(test)]
/// Collects all the known columns in the vari_long_period_variable 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::frequency.to_string());
    col_strings.push(Col::frequency_error.to_string());
    col_strings.push(Col::amplitude.to_string());
    col_strings.push(Col::median_delta_wl_rp.to_string());
    col_strings.push(Col::is_cstar.to_string());
    map.insert(vari_long_period_variable.string(), col_strings);
}