pub struct StatsDatasRequest { /* private fields */ }Expand description
One request of StatsDatasParams: a table or dataset with its filters.
use estat_api::{Dimension, StatsDatasRequest};
let tokyo = StatsDatasRequest::table("0003448237").code(Dimension::Area, "13000");Implementations§
Source§impl StatsDatasRequest
impl StatsDatasRequest
Sourcepub fn table(stats_data_id: impl Into<String>) -> Self
pub fn table(stats_data_id: impl Into<String>) -> Self
Values 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
Values of a registered dataset (dataSetId).
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).
Trait Implementations§
Source§impl Clone for StatsDatasRequest
impl Clone for StatsDatasRequest
Source§impl Debug for StatsDatasRequest
impl Debug for StatsDatasRequest
impl Eq for StatsDatasRequest
Source§impl PartialEq for StatsDatasRequest
impl PartialEq for StatsDatasRequest
impl StructuralPartialEq for StatsDatasRequest
Auto Trait Implementations§
impl Forget for StatsDatasRequest
impl Freeze for StatsDatasRequest
impl Move for StatsDatasRequest
impl RefUnwindSafe for StatsDatasRequest
impl Send for StatsDatasRequest
impl Sync for StatsDatasRequest
impl Unpin for StatsDatasRequest
impl UnsafeUnpin for StatsDatasRequest
impl UnwindSafe for StatsDatasRequest
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.