pub struct DataCatalogParams { /* private fields */ }Expand description
Parameters of EstatApi::data_catalog
(getDataCatalog, データカタログ情報取得).
use estat_api::{DataCatalogParams, DataType};
let params = DataCatalogParams::new()
.stats_code("00400001")
.data_types([DataType::Xls, DataType::Csv]);Implementations§
Source§impl DataCatalogParams
impl DataCatalogParams
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.
Sourcepub fn collect_area(self, area: CollectArea) -> Self
pub fn collect_area(self, area: CollectArea) -> Self
Area level (collectArea).
Sourcepub fn explanation(self, on: bool) -> Self
pub fn explanation(self, on: bool) -> Self
Include explanations (explanationGetFlg, default true).
Sourcepub fn data_types(self, types: impl IntoIterator<Item = DataType>) -> Self
pub fn data_types(self, types: impl IntoIterator<Item = DataType>) -> Self
File formats (dataType). All formats when not set.
Sourcepub fn catalog_id(self, value: impl Into<String>) -> Self
pub fn catalog_id(self, value: impl Into<String>) -> Self
Catalog ID (catalogId).
Sourcepub fn resource_id(self, value: impl Into<String>) -> Self
pub fn resource_id(self, value: impl Into<String>) -> Self
Catalog resource ID (resourceId).
Sourcepub fn start_position(self, position: u64) -> Self
pub fn start_position(self, position: u64) -> Self
First dataset 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 DataCatalogParams
impl Clone for DataCatalogParams
Source§impl Debug for DataCatalogParams
impl Debug for DataCatalogParams
Source§impl Default for DataCatalogParams
impl Default for DataCatalogParams
impl Eq for DataCatalogParams
Source§impl PartialEq for DataCatalogParams
impl PartialEq for DataCatalogParams
impl StructuralPartialEq for DataCatalogParams
Auto Trait Implementations§
impl Forget for DataCatalogParams
impl Freeze for DataCatalogParams
impl Move for DataCatalogParams
impl RefUnwindSafe for DataCatalogParams
impl Send for DataCatalogParams
impl Sync for DataCatalogParams
impl Unpin for DataCatalogParams
impl UnsafeUnpin for DataCatalogParams
impl UnwindSafe for DataCatalogParams
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.