[][src]Struct vega_lite_3::DataBuilder

pub struct DataBuilder { /* fields omitted */ }

Builder for Data.

Methods

impl DataBuilder[src]

pub fn format<VALUE: Into<DataFormat>>(&mut self, value: VALUE) -> &mut Self[src]

An object that specifies the format for parsing the data.

pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Provide a placeholder name and bind data at runtime.

pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

An URL from which to load the data set. Use the format.type property to ensure the loaded data is correctly parsed.

pub fn values<VALUE: Into<UrlDataInlineDataset>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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.

pub fn sequence<VALUE: Into<SequenceParams>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Generate a sequence of numbers.

pub fn sphere<VALUE: Into<SphereUnion>>(&mut self, value: VALUE) -> &mut Self[src]

Generate sphere GeoJSON data for the full globe.

pub fn graticule<VALUE: Into<Graticule>>(&mut self, value: VALUE) -> &mut Self[src]

Generate graticule GeoJSON data for geographic reference lines.

pub fn build(&self) -> Result<Data, String>[src]

Builds a new Data.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for DataBuilder[src]

impl Default for DataBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.