[−][src]Struct covid19db::dbschema::OWID
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: String
date_julian: i32
total_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]
&'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>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,