Skip to main content

Module response

Module response 

Source
Expand description

Responses of getStatsList, getMetaInfo, getStatsData and getStatsDatas.

Field names follow the e-Stat tags in snake case (TABLE_INF is table_inf, @parentCode is parent_code). Elements that e-Stat sends as an object when there is one and as an array when there are more are always a Vec here.

Every struct keeps fields this crate does not know in extra, and serializing it gives them back.

Structs§

Annotation
ANNOTATION element.
ApiResult
RESULT element: outcome of the request.
Class
CLASS element: one item of a dimension, such as an area or a year.
ClassInf
CLASS_INF element: the dimensions of a table.
ClassInfList
CLASS_INF_LIST element.
ClassObj
CLASS_OBJ element: one dimension and its items.
CodeName
Name with a code attribute, such as STAT_NAME (@code is the government statistics code) or GOV_ORG (@code is the agency code).
DataInf
DATA_INF element.
DataInfList
DATA_INF_LIST element.
DataListInf
DATALIST_INF element.
DataValue
VALUE element: one cell of a table.
Description
DESCRIPTION element: explanations of the statistics and classifications.
Explanation
EXPLANATION element: explanation of one item.
ListInf
LIST_INF element: one survey in a survey name list.
MetaInfo
Response of EstatApi::meta_info (GET_META_INFO).
MetadataInf
METADATA_INF element.
Note
NOTE element: a special character and its meaning.
ResultInf
RESULT_INF element: position of the returned rows.
StatisticalData
STATISTICAL_DATA element.
StatisticalDataList
STATISTICAL_DATA_LIST element. Each entry carries the number of its request in request_no; use table, class_inf and values to pick one.
StatisticsNameSpec
STATISTICS_NAME_SPEC element.
StatsData
Response of EstatApi::stats_data (GET_STATS_DATA).
StatsDatas
Response of EstatApi::stats_datas (GET_STATS_DATAS).
StatsList
Response of EstatApi::stats_list (GET_STATS_LIST).
TableInf
TABLE_INF element: description of one statistical table.
TableInfList
TABLE_INF_LIST element.
Title
TITLE of a table. e-Stat sends a plain string when the table has no number.
TitleSpec
TITLE_SPEC element.