pub struct Data {
pub format: Option<DataFormat>,
pub name: Option<String>,
pub url: Option<String>,
pub values: Option<DataInlineDataset>,
}
Expand description
An object describing the data source
Secondary data source to lookup in.
Fields§
§format: Option<DataFormat>
An object that specifies the format for parsing the data.
name: Option<String>
Provide a placeholder name and bind data at runtime.
url: Option<String>
An URL from which to load the data set. Use the format.type
property
to ensure the loaded data is correctly parsed.
values: Option<DataInlineDataset>
The full data set, included inline. This can be an array of objects or primitive values,
an object, or a string.
Arrays of primitive values are ingested as objects with a data
property. Strings are
parsed according to the specified format type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Data
impl<'de> Deserialize<'de> for Data
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