#[non_exhaustive]pub struct Resource {
pub id: String,
pub title: Option<ResourceTitle>,
pub url: Option<String>,
pub description: Option<String>,
pub format: Option<String>,
pub release_date: Option<String>,
pub last_modified_date: Option<String>,
pub resource_licence_id: Option<String>,
pub language: Option<String>,
pub extra: Map<String, Value>,
}Expand description
RESOURCE element: one file, or one table of the statistics database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringResource ID (@id).
title: Option<ResourceTitle>Names.
url: Option<String>Download URL on e-Stat, or the table ID for database tables
(format DB).
description: Option<String>Explanation.
format: Option<String>Format: XLS, CSV, PDF, XML, XLS_REP or DB.
release_date: Option<String>Release date, yyyy-mm-dd.
last_modified_date: Option<String>Last modified date, yyyy-mm-dd.
resource_licence_id: Option<String>License, such as Government of Japan Standard Terms of Use.
language: Option<String>Language, J or E.
extra: Map<String, Value>Fields this crate does not know yet, kept as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl Move for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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