pub struct DatasetMetaData {
    pub name: String,
    pub id: String,
    pub annotation: String,
    pub variables: Vec<String>,
}Expand description
Structure for sending metadata about Dataset. This includes name, id, variable names,
but excludes all observations.
Some fields simplified compared to original typesafe versions (e.g., pure Strings are used
instead of more complex typesafe structs) to allow for easier (de)serialization.
Fields§
§name: String§id: String§annotation: String§variables: Vec<String>Implementations§
source§impl DatasetMetaData
 
impl DatasetMetaData
sourcepub fn from_dataset(id: &DatasetId, dataset: &Dataset) -> DatasetMetaData
 
pub fn from_dataset(id: &DatasetId, dataset: &Dataset) -> DatasetMetaData
Create new DatasetMetaData object given a reference to a dataset and its ID.
Trait Implementations§
source§impl Clone for DatasetMetaData
 
impl Clone for DatasetMetaData
source§fn clone(&self) -> DatasetMetaData
 
fn clone(&self) -> DatasetMetaData
Returns a copy 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 DatasetMetaData
 
impl Debug for DatasetMetaData
source§impl<'de> Deserialize<'de> for DatasetMetaData
 
impl<'de> Deserialize<'de> for DatasetMetaData
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<'de> JsonSerde<'de> for DatasetMetaData
 
impl<'de> JsonSerde<'de> for DatasetMetaData
source§fn to_json_str(&self) -> String
 
fn to_json_str(&self) -> String
Wrapper for json serialization.
source§fn to_pretty_json_str(&self) -> String
 
fn to_pretty_json_str(&self) -> String
Wrapper for pretty json serialization with indentation.
source§impl PartialEq for DatasetMetaData
 
impl PartialEq for DatasetMetaData
source§impl Serialize for DatasetMetaData
 
impl Serialize for DatasetMetaData
impl StructuralPartialEq for DatasetMetaData
Auto Trait Implementations§
impl Freeze for DatasetMetaData
impl RefUnwindSafe for DatasetMetaData
impl Send for DatasetMetaData
impl Sync for DatasetMetaData
impl Unpin for DatasetMetaData
impl UnwindSafe for DatasetMetaData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)