Struct vega_lite::Data

source ·
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§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.