pub struct VegaLiteSpec { /* private fields */ }Expand description
Placeholder compiled Vega-Lite representation.
Implementations§
Source§impl VegaLiteSpec
impl VegaLiteSpec
pub const SCHEMA_URL: &'static str = "https://vega.github.io/schema/vega-lite/v6.json"
pub const VEGA_CDN_URL: &'static str = "https://cdn.jsdelivr.net/npm/vega@6"
pub const VEGA_LITE_CDN_URL: &'static str = "https://cdn.jsdelivr.net/npm/vega-lite@6"
pub const VEGA_EMBED_CDN_URL: &'static str = "https://cdn.jsdelivr.net/npm/vega-embed@7"
pub fn to_json(&self) -> String
pub fn to_html(&self) -> String
pub fn write_html<P>(&self, path: P) -> Result<()>
pub fn show_in_browser<P>(&self, path: P) -> Result<()>
Trait Implementations§
Source§impl Clone for VegaLiteSpec
impl Clone for VegaLiteSpec
Source§fn clone(&self) -> VegaLiteSpec
fn clone(&self) -> VegaLiteSpec
Returns a duplicate 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 moreSource§impl Debug for VegaLiteSpec
impl Debug for VegaLiteSpec
Source§impl PartialEq for VegaLiteSpec
impl PartialEq for VegaLiteSpec
impl StructuralPartialEq for VegaLiteSpec
Auto Trait Implementations§
impl Freeze for VegaLiteSpec
impl RefUnwindSafe for VegaLiteSpec
impl Send for VegaLiteSpec
impl Sync for VegaLiteSpec
impl Unpin for VegaLiteSpec
impl UnsafeUnpin for VegaLiteSpec
impl UnwindSafe for VegaLiteSpec
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