pub struct CodeSeries {
pub series_code: String,
pub name_of_time_series_j: Option<String>,
pub name_of_time_series: Option<String>,
pub unit_j: Option<String>,
pub unit: Option<String>,
pub frequency: Option<String>,
pub category_j: Option<String>,
pub category: Option<String>,
pub last_update: Option<String>,
pub points: Vec<DataPoint>,
pub extras: BTreeMap<String, Option<String>>,
}Expand description
One time-series entry from getDataCode.
Fields§
§series_code: StringTime-series code returned by BOJ.
name_of_time_series_j: Option<String>Japanese time-series name, when available for response language/format.
name_of_time_series: Option<String>English time-series name, when available for response language/format.
unit_j: Option<String>Japanese unit label, when available for response language/format.
unit: Option<String>English unit label, when available for response language/format.
frequency: Option<String>Frequency label reported by BOJ, when available.
category_j: Option<String>Japanese category label, when available for response language/format.
category: Option<String>English category label, when available for response language/format.
last_update: Option<String>Last update timestamp/text from BOJ, when available.
points: Vec<DataPoint>Ordered data points in the series.
extras: BTreeMap<String, Option<String>>Additional series fields not normalized into dedicated fields.
Trait Implementations§
Source§impl Clone for CodeSeries
impl Clone for CodeSeries
Source§fn clone(&self) -> CodeSeries
fn clone(&self) -> CodeSeries
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeSeries
impl Debug for CodeSeries
Source§impl<'de> Deserialize<'de> for CodeSeries
impl<'de> Deserialize<'de> for CodeSeries
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CodeSeries
impl PartialEq for CodeSeries
Source§impl Serialize for CodeSeries
impl Serialize for CodeSeries
impl Eq for CodeSeries
impl StructuralPartialEq for CodeSeries
Auto Trait Implementations§
impl Freeze for CodeSeries
impl RefUnwindSafe for CodeSeries
impl Send for CodeSeries
impl Sync for CodeSeries
impl Unpin for CodeSeries
impl UnsafeUnpin for CodeSeries
impl UnwindSafe for CodeSeries
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