[−][src]Struct vega_lite_3::DataBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for DataBuilder
[src]
fn clone(&self) -> DataBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DataBuilder
[src]
fn default() -> DataBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataBuilder
impl Send for DataBuilder
impl Sync for DataBuilder
impl Unpin for DataBuilder
impl UnwindSafe for DataBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,