pub struct StatsDataParams { /* private fields */ }Expand description
Parameters of EstatApi::stats_data
(getStatsData, 統計データ取得).
Filters on the same dimension are combined with AND.
use estat_api::{Dimension, StatsDataParams};
let params = StatsDataParams::table("0003410379")
.code(Dimension::Area, "13000")
.code_from(Dimension::Time, "2020000000")
.level(Dimension::Cat01, "1")
.limit(10_000);Implementations§
Source§impl StatsDataParams
impl StatsDataParams
Sourcepub fn table(stats_data_id: impl Into<String>) -> Self
pub fn table(stats_data_id: impl Into<String>) -> Self
Data of a statistical table (statsDataId).
Sourcepub fn dataset(data_set_id: impl Into<String>) -> Self
pub fn dataset(data_set_id: impl Into<String>) -> Self
Data of a dataset registered on e-Stat (dataSetId). Its conditions
apply, and filters added here narrow them further.
Sourcepub fn level(self, dim: Dimension, level: impl Into<String>) -> Self
pub fn level(self, dim: Dimension, level: impl Into<String>) -> Self
Hierarchy level (lvTab, lvArea, …): X, X-X, -X or X-.
Sourcepub fn code(self, dim: Dimension, codes: impl Into<String>) -> Self
pub fn code(self, dim: Dimension, codes: impl Into<String>) -> Self
Item codes (cdTab, cdArea, …), up to 100 separated by commas.
min and max stand for the smallest and largest code.
Sourcepub fn code_from(self, dim: Dimension, code: impl Into<String>) -> Self
pub fn code_from(self, dim: Dimension, code: impl Into<String>) -> Self
Codes from this one on (cdTabFrom, …).
Sourcepub fn code_to(self, dim: Dimension, code: impl Into<String>) -> Self
pub fn code_to(self, dim: Dimension, code: impl Into<String>) -> Self
Codes up to this one (cdTabTo, …).
Sourcepub fn start_position(self, position: u64) -> Self
pub fn start_position(self, position: u64) -> Self
First row to return, from 1 (startPosition). Pass the previous NEXT_KEY.
Sourcepub fn meta(self, on: bool) -> Self
pub fn meta(self, on: bool) -> Self
Include the table’s metadata in StatisticalData::class_inf
(metaGetFlg, default true).
Sourcepub fn count_only(self) -> Self
pub fn count_only(self) -> Self
Return only the number of rows, in RESULT_INF.TOTAL_NUMBER (cntGetFlg=Y).
Sourcepub fn explanation(self, on: bool) -> Self
pub fn explanation(self, on: bool) -> Self
Include explanations (explanationGetFlg, default true).
Sourcepub fn annotation(self, on: bool) -> Self
pub fn annotation(self, on: bool) -> Self
Include annotations of values (annotationGetFlg, default true).
Sourcepub fn replace_sp_char(self, replace: ReplaceSpChar) -> Self
pub fn replace_sp_char(self, replace: ReplaceSpChar) -> Self
Replace special characters in values (replaceSpChar).
Trait Implementations§
Source§impl Clone for StatsDataParams
impl Clone for StatsDataParams
Source§impl Debug for StatsDataParams
impl Debug for StatsDataParams
impl Eq for StatsDataParams
Source§impl PartialEq for StatsDataParams
impl PartialEq for StatsDataParams
impl StructuralPartialEq for StatsDataParams
Auto Trait Implementations§
impl Forget for StatsDataParams
impl Freeze for StatsDataParams
impl Move for StatsDataParams
impl RefUnwindSafe for StatsDataParams
impl Send for StatsDataParams
impl Sync for StatsDataParams
impl Unpin for StatsDataParams
impl UnsafeUnpin for StatsDataParams
impl UnwindSafe for StatsDataParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.