Struct vega_lite_4::Data
source · pub struct Data {
pub format: Option<DataFormat>,
pub name: Option<String>,
pub url: Option<String>,
pub values: Option<UrlDataInlineDataset>,
pub sequence: Option<SequenceParams>,
pub sphere: Option<SphereUnion>,
pub graticule: Option<Graticule>,
}
Expand description
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<UrlDataInlineDataset>
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.
sequence: Option<SequenceParams>
Generate a sequence of numbers.
sphere: Option<SphereUnion>
Generate sphere GeoJSON data for the full globe.
graticule: Option<Graticule>
Generate graticule GeoJSON data for geographic reference lines.
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
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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