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

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

/// This table provides information on AGN properties.
#[allow(non_camel_case_types)]
pub struct vari_agn;

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

/// The columns in the vari_agn 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,
    /// Fractional variability in the G band
    fractional_variability_g,
    /// Index of the first-order structure function in the G band
    structure_function_index,
    /// Standard deviation of the index of the structure function
    structure_function_index_scatter,
    /// Quasar variability metric in the G band
    qso_variability,
    /// Non-quasar variability metric in the G band
    non_qso_variability,
}

impl Column for Col {}

#[cfg(test)]
/// Collects all the known columns in the vari_agn 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::fractional_variability_g.to_string());
    col_strings.push(Col::structure_function_index.to_string());
    col_strings.push(Col::structure_function_index_scatter.to_string());
    col_strings.push(Col::qso_variability.to_string());
    col_strings.push(Col::non_qso_variability.to_string());
    map.insert(vari_agn.string(), col_strings);
}