[][src]Struct covid19db::dbschema::OWID

pub struct OWID {
    pub iso_code: Option<String>,
    pub continent: Option<String>,
    pub location: String,
    pub date_julian: i32,
    pub total_cases: Option<f64>,
    pub new_cases: Option<f64>,
    pub new_cases_smoothed: Option<f64>,
    pub total_deaths: Option<f64>,
    pub new_deaths: Option<f64>,
    pub new_deaths_smoothed: Option<f64>,
    pub total_cases_per_million: Option<f64>,
    pub new_cases_per_million: Option<f64>,
    pub new_cases_smoothed_per_million: Option<f64>,
    pub total_deaths_per_million: Option<f64>,
    pub new_deaths_per_million: Option<f64>,
    pub new_deaths_smoothed_per_million: Option<f64>,
    pub icu_patients: Option<f64>,
    pub icu_patients_per_million: Option<f64>,
    pub hosp_patients: Option<f64>,
    pub hosp_patients_per_million: Option<f64>,
    pub weekly_icu_admissions: Option<f64>,
    pub weekly_icu_admissions_per_million: Option<f64>,
    pub weekly_hosp_admissions: Option<f64>,
    pub weekly_hosp_admissions_per_million: Option<f64>,
    pub total_tests: Option<f64>,
    pub new_tests: Option<f64>,
    pub new_tests_smoothed: Option<f64>,
    pub total_tests_per_thousand: Option<f64>,
    pub new_tests_per_thousand: Option<f64>,
    pub new_tests_smoothed_per_thousand: Option<f64>,
    pub tests_per_case: Option<f64>,
    pub positive_rate: Option<f64>,
    pub tests_units: Option<String>,
    pub stringency_index: Option<f64>,
    pub population: Option<f64>,
    pub population_density: Option<f64>,
    pub median_age: Option<f64>,
    pub aged_65_older: Option<f64>,
    pub aged_70_older: Option<f64>,
    pub gdp_per_capita: Option<f64>,
    pub extreme_poverty: Option<f64>,
    pub cardiovasc_death_rate: Option<f64>,
    pub diabetes_prevalence: Option<f64>,
    pub female_smokers: Option<f64>,
    pub male_smokers: Option<f64>,
    pub handwashing_facilities: Option<f64>,
    pub hospital_beds_per_thousand: Option<f64>,
    pub life_expectancy: Option<f64>,
    pub human_development_index: Option<f64>,
}

The OWID struct represents a row in the rtlive table. It is an instance of sqlx::FromRow for the benefit of users of sqlx::query_as.

Fields

iso_code: Option<String>continent: Option<String>location: Stringdate_julian: i32total_cases: Option<f64>new_cases: Option<f64>new_cases_smoothed: Option<f64>total_deaths: Option<f64>new_deaths: Option<f64>new_deaths_smoothed: Option<f64>total_cases_per_million: Option<f64>new_cases_per_million: Option<f64>new_cases_smoothed_per_million: Option<f64>total_deaths_per_million: Option<f64>new_deaths_per_million: Option<f64>new_deaths_smoothed_per_million: Option<f64>icu_patients: Option<f64>icu_patients_per_million: Option<f64>hosp_patients: Option<f64>hosp_patients_per_million: Option<f64>weekly_icu_admissions: Option<f64>weekly_icu_admissions_per_million: Option<f64>weekly_hosp_admissions: Option<f64>weekly_hosp_admissions_per_million: Option<f64>total_tests: Option<f64>new_tests: Option<f64>new_tests_smoothed: Option<f64>total_tests_per_thousand: Option<f64>new_tests_per_thousand: Option<f64>new_tests_smoothed_per_thousand: Option<f64>tests_per_case: Option<f64>positive_rate: Option<f64>tests_units: Option<String>stringency_index: Option<f64>population: Option<f64>population_density: Option<f64>median_age: Option<f64>aged_65_older: Option<f64>aged_70_older: Option<f64>gdp_per_capita: Option<f64>extreme_poverty: Option<f64>cardiovasc_death_rate: Option<f64>diabetes_prevalence: Option<f64>female_smokers: Option<f64>male_smokers: Option<f64>handwashing_facilities: Option<f64>hospital_beds_per_thousand: Option<f64>life_expectancy: Option<f64>human_development_index: Option<f64>

Implementations

impl OWID[src]

pub fn bind_query<'q>(self, query: Query<'q, Sqlite>) -> Query<'q, Sqlite>[src]

Bind all the parameters to a query, perhaps as generated by [insert_str].

pub fn insert_str() -> &'static str[src]

Gets an INSERT INTO string representing all the values in the table.

pub fn set_date(&mut self, julian: i32)[src]

Sets all date fields in the struct to appropriate representations of the given Julian date.

pub fn set_date_julianday(&mut self, jd: &JulianDay)[src]

Sets all date fields in the struct to the appropriate representation of the given JulianDay.

pub fn set_date_naivedate(&mut self, nd: &NaiveDate)[src]

Sets all date fields in the struct to the appropriate representation of the given NaiveDate from the chrono package.

Trait Implementations

impl Clone for OWID[src]

impl Debug for OWID[src]

impl<'a, R: Row<'a>> FromRow<'a, R> for OWID where
    &'a str: ColumnIndex<'a, R>,
    Option<String>: Decode<'a, R::Database>,
    Option<String>: Type<R::Database>,
    Option<String>: Decode<'a, R::Database>,
    Option<String>: Type<R::Database>,
    String: Decode<'a, R::Database>,
    String: Type<R::Database>,
    i32: Decode<'a, R::Database>,
    i32: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<String>: Decode<'a, R::Database>,
    Option<String>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>,
    Option<f64>: Decode<'a, R::Database>,
    Option<f64>: Type<R::Database>, 
[src]

impl PartialEq<OWID> for OWID[src]

impl StructuralPartialEq for OWID[src]

Auto Trait Implementations

impl RefUnwindSafe for OWID

impl Send for OWID

impl Sync for OWID

impl Unpin for OWID

impl UnwindSafe for OWID

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,