pub struct TablePlotSpec {
pub method: String,
pub row_labels: Vec<String>,
pub col_labels: Vec<String>,
pub cells: Vec<Vec<String>>,
}Expand description
Backend-neutral table plot request produced by table() hooks (pandas pandas.plotting.table).
Fields§
§method: String§row_labels: Vec<String>§col_labels: Vec<String>§cells: Vec<Vec<String>>Implementations§
Source§impl TablePlotSpec
impl TablePlotSpec
Sourcepub fn to_svg(&self) -> Result<String, FrameError>
pub fn to_svg(&self) -> Result<String, FrameError>
Render this table plot specification to deterministic SVG XML.
Sourcepub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
pub fn to_svg_bytes(&self) -> Result<Vec<u8>, FrameError>
TablePlotSpec::to_svg as UTF-8 bytes.
Sourcepub fn to_html(&self) -> Result<String, FrameError>
pub fn to_html(&self) -> Result<String, FrameError>
Wrap the deterministic SVG in an HTML figure container.
Sourcepub fn to_html_page(&self, title: Option<&str>) -> Result<String, FrameError>
pub fn to_html_page(&self, title: Option<&str>) -> Result<String, FrameError>
Render this table plot spec to a complete HTML5 page document.
Sourcepub fn to_markdown(&self) -> Result<String, FrameError>
pub fn to_markdown(&self) -> Result<String, FrameError>
Render this table plot spec to Markdown-compatible HTML embedding.
Trait Implementations§
Source§impl Clone for TablePlotSpec
impl Clone for TablePlotSpec
Source§impl Debug for TablePlotSpec
impl Debug for TablePlotSpec
Source§impl<'de> Deserialize<'de> for TablePlotSpec
impl<'de> Deserialize<'de> for TablePlotSpec
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
Source§impl PartialEq for TablePlotSpec
impl PartialEq for TablePlotSpec
Source§impl Serialize for TablePlotSpec
impl Serialize for TablePlotSpec
impl StructuralPartialEq for TablePlotSpec
Auto Trait Implementations§
impl Forget for TablePlotSpec
impl Freeze for TablePlotSpec
impl Move for TablePlotSpec
impl RefUnwindSafe for TablePlotSpec
impl Send for TablePlotSpec
impl Sync for TablePlotSpec
impl Unpin for TablePlotSpec
impl UnsafeUnpin for TablePlotSpec
impl UnwindSafe for TablePlotSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more