pub struct StatsListParams { /* private fields */ }Expand description
Parameters of EstatApi::stats_list
(getStatsList, 統計表情報取得).
Without any parameter the call lists every table, so narrow it down.
use estat_api::StatsListParams;
let params = StatsListParams::new()
.search_word("人口 AND 東京")
.stats_code("00200521")
.limit(100);Implementations§
Source§impl StatsListParams
impl StatsListParams
Sourcepub fn survey_years(self, value: impl Into<String>) -> Self
pub fn survey_years(self, value: impl Into<String>) -> Self
Survey period (surveyYears): yyyy, yyyymm or yyyymm-yyyymm.
Sourcepub fn open_years(self, value: impl Into<String>) -> Self
pub fn open_years(self, value: impl Into<String>) -> Self
Release period (openYears), in the same format as survey_years.
Sourcepub fn stats_field(self, value: impl Into<String>) -> Self
pub fn stats_field(self, value: impl Into<String>) -> Self
Statistics field (statsField): 2 digits for a major field, 4 for a minor one.
Sourcepub fn stats_code(self, value: impl Into<String>) -> Self
pub fn stats_code(self, value: impl Into<String>) -> Self
Government statistics code (statsCode): 5 digits for an agency, 8 for a survey.
Sourcepub fn search_word(self, value: impl Into<String>) -> Self
pub fn search_word(self, value: impl Into<String>) -> Self
Keywords (searchWord). AND, OR and NOT combine words, as in 東京 AND 人口.
Sourcepub fn search_kind(self, kind: SearchKind) -> Self
pub fn search_kind(self, kind: SearchKind) -> Self
Kind of data (searchKind).
Sourcepub fn collect_area(self, area: CollectArea) -> Self
pub fn collect_area(self, area: CollectArea) -> Self
Area level (collectArea). Ignored for SearchKind::SmallArea.
Sourcepub fn explanation(self, on: bool) -> Self
pub fn explanation(self, on: bool) -> Self
Include explanations (explanationGetFlg, default true).
Sourcepub fn stats_name_list(self) -> Self
pub fn stats_name_list(self) -> Self
List survey names instead of tables (statsNameList=Y). The result is
then in DataListInf::list_inf.
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 updated_date(self, value: impl Into<String>) -> Self
pub fn updated_date(self, value: impl Into<String>) -> Self
Update date (updatedDate): yyyy, yyyymm, yyyymmdd or yyyymmdd-yyyymmdd.
Trait Implementations§
Source§impl Clone for StatsListParams
impl Clone for StatsListParams
Source§impl Debug for StatsListParams
impl Debug for StatsListParams
Source§impl Default for StatsListParams
impl Default for StatsListParams
impl Eq for StatsListParams
Source§impl PartialEq for StatsListParams
impl PartialEq for StatsListParams
impl StructuralPartialEq for StatsListParams
Auto Trait Implementations§
impl Forget for StatsListParams
impl Freeze for StatsListParams
impl Move for StatsListParams
impl RefUnwindSafe for StatsListParams
impl Send for StatsListParams
impl Sync for StatsListParams
impl Unpin for StatsListParams
impl UnsafeUnpin for StatsListParams
impl UnwindSafe for StatsListParams
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.