wspr_cdk 0.0.12

This crate provides an abstraction that allows you to do analysis on wspr's real time spot data.
Documentation
#![allow(non_snake_case)]

use super::prelude::WsprSpot;

#[derive(Debug)]
pub struct ClickHouseState {
    pub DATA: Option<Vec<WsprSpot>>,
    pub STATUS: String,
}

impl ClickHouseState {
    pub fn new() -> Self {
        Self {
            DATA: Some(Vec::new()),
            STATUS: "Initialized".to_string(),
        }
    }

    // pub async fn parse_to_wspr_spots(&self) -> Vec<WsprSpot> {
    //    todo!()
    // }
}

impl Default for ClickHouseState {
    fn default() -> Self {
        Self::new()
    }
}