Struct vega_lite_4::DataBuilder
source · pub struct DataBuilder { /* private fields */ }
Expand description
Builder for Data
.
Implementations§
source§impl DataBuilder
impl DataBuilder
sourcepub fn format<VALUE: Into<DataFormat>>(&mut self, value: VALUE) -> &mut Self
pub fn format<VALUE: Into<DataFormat>>(&mut self, value: VALUE) -> &mut Self
An object that specifies the format for parsing the data.
sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Provide a placeholder name and bind data at runtime.
sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An URL from which to load the data set. Use the format.type
property to ensure the
loaded data is correctly parsed.
sourcepub fn values<VALUE: Into<UrlDataInlineDataset>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn values<VALUE: Into<UrlDataInlineDataset>>( &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.
sourcepub fn sequence<VALUE: Into<SequenceParams>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn sequence<VALUE: Into<SequenceParams>>( &mut self, value: VALUE ) -> &mut Self
Generate a sequence of numbers.
sourcepub fn sphere<VALUE: Into<SphereUnion>>(&mut self, value: VALUE) -> &mut Self
pub fn sphere<VALUE: Into<SphereUnion>>(&mut self, value: VALUE) -> &mut Self
Generate sphere GeoJSON data for the full globe.
Trait Implementations§
source§impl Clone for DataBuilder
impl Clone for DataBuilder
source§fn clone(&self) -> DataBuilder
fn clone(&self) -> DataBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DataBuilder
impl Send for DataBuilder
impl Sync for DataBuilder
impl Unpin for DataBuilder
impl UnwindSafe for DataBuilder
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