[−][src]Struct covid19db::dbschema::CDataSet
The CDataSet
struct represents a row in the cdataset
table. It is an instance
of sqlx::FromRow
for the benefit of users of sqlx::query_as
.
Fields
dataset: String
locid: i64
location_lat: Option<f64>
location_long: Option<f64>
date_julian: i32
day_index_0: i32
day_index_1: i32
day_index_10: Option<i32>
day_index_100: Option<i32>
day_index_1k: Option<i32>
day_index_10k: Option<i32>
day_index_peak: Option<i32>
day_index_peak_confirmed: Option<i32>
day_index_peak_deaths: Option<i32>
absolute_confirmed: i64
absolute_deaths: i64
absolute_recovered: i64
absolute_infected: i64
absolute_pop100k_confirmed: Option<f64>
absolute_pop100k_deaths: Option<f64>
absolute_pop100k_recovered: Option<f64>
absolute_pop100k_infected: Option<f64>
relative_deaths: Option<f64>
relative_recovered: Option<f64>
relative_infected: Option<f64>
delta_confirmed: i64
delta_deaths: i64
delta_recovered: i64
delta_infected: i64
delta_pct_confirmed: Option<f64>
delta_pct_deaths: Option<f64>
delta_pct_recovered: Option<f64>
delta_pct_infected: Option<f64>
delta_pop100k_confirmed: Option<f64>
delta_pop100k_deaths: Option<f64>
delta_pop100k_recovered: Option<f64>
delta_pop100k_infected: Option<f64>
peak_pct_confirmed: Option<f64>
peak_pct_deaths: Option<f64>
peak_pct_recovered: Option<f64>
peak_pct_infected: Option<f64>
factbook_area: Option<f64>
factbook_population: Option<i64>
factbook_death_rate: Option<f64>
factbook_median_age: Option<f64>
Implementations
impl CDataSet
[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 dup_day(self) -> Self
[src]
Zeroes out the delta parameters so that this can reflect a duplicate day
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 CDataSet
[src]
impl Debug for CDataSet
[src]
impl<'a, R: Row<'a>> FromRow<'a, R> for CDataSet where
&'a str: ColumnIndex<'a, R>,
String: Decode<'a, R::Database>,
String: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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<i64>: Decode<'a, R::Database>,
Option<i64>: 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>,
String: Decode<'a, R::Database>,
String: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
i32: Decode<'a, R::Database>,
i32: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
Option<i32>: Decode<'a, R::Database>,
Option<i32>: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
i64: Decode<'a, R::Database>,
i64: 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<i64>: Decode<'a, R::Database>,
Option<i64>: 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<CDataSet> for CDataSet
[src]
impl StructuralPartialEq for CDataSet
[src]
Auto Trait Implementations
impl RefUnwindSafe for CDataSet
impl Send for CDataSet
impl Sync for CDataSet
impl Unpin for CDataSet
impl UnwindSafe for CDataSet
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>,