pub struct PostDatasetParams { /* private fields */ }Expand description
Parameters of EstatApi::post_dataset
(postDataset, データセット登録).
A dataset stores a table ID and filters under your application ID, so
that StatsDataParams::dataset can use them later.
use estat_api::{Dimension, PostDatasetParams};
// Register, or update the dataset with this ID
let register = PostDatasetParams::register("0003448237")
.dataset_id("tokyo-population")
.name("東京都の人口")
.code(Dimension::Area, "13000");
// Delete it
let delete = PostDatasetParams::delete("tokyo-population");Implementations§
Source§impl PostDatasetParams
impl PostDatasetParams
Sourcepub fn register(stats_data_id: impl Into<String>) -> Self
pub fn register(stats_data_id: impl Into<String>) -> Self
Registers a dataset for a table (processMode=E). It needs at least
one filter. With dataset_id of an existing
dataset, that dataset is updated.
Sourcepub fn dataset_id(self, value: impl Into<String>) -> Self
pub fn dataset_id(self, value: impl Into<String>) -> Self
Dataset ID (dataSetId): up to 30 characters of letters, digits and
-_.@. Without it e-Stat makes one from the survey code and the time.
Sourcepub fn name(self, value: impl Into<String>) -> Self
pub fn name(self, value: impl Into<String>) -> Self
Name or description (dataSetName), up to 256 characters.
Sourcepub fn public(self, on: bool) -> Self
pub fn public(self, on: bool) -> Self
Let other users see and use the dataset (openSpecified, default false).
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.
Trait Implementations§
Source§impl Clone for PostDatasetParams
impl Clone for PostDatasetParams
Source§impl Debug for PostDatasetParams
impl Debug for PostDatasetParams
impl Eq for PostDatasetParams
Source§impl PartialEq for PostDatasetParams
impl PartialEq for PostDatasetParams
impl StructuralPartialEq for PostDatasetParams
Auto Trait Implementations§
impl Forget for PostDatasetParams
impl Freeze for PostDatasetParams
impl Move for PostDatasetParams
impl RefUnwindSafe for PostDatasetParams
impl Send for PostDatasetParams
impl Sync for PostDatasetParams
impl Unpin for PostDatasetParams
impl UnsafeUnpin for PostDatasetParams
impl UnwindSafe for PostDatasetParams
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.