pub enum ImageFormat {
PNG,
JPEG,
WEBP,
SVG,
PDF,
EPS,
}
Expand description
Image format for static image export using Kaleido.
This enum defines all the image formats that can be exported from Plotly plots using the Kaleido engine. Kaleido supports all these formats natively.
Variants§
PNG
Portable Network Graphics format
JPEG
Joint Photographic Experts Group format
WEBP
WebP format (Google’s image format)
SVG
Scalable Vector Graphics format
Portable Document Format
EPS
👎Deprecated since 0.13.0: Use SVG or PDF instead. EPS variant will be removed in version 0.14.0
Encapsulated PostScript format (deprecated)
This format is deprecated since version 0.13.0 and will be removed in version 0.14.0. Use SVG or PDF instead for vector graphics. EPS is not supported in the open source version.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
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 ImageFormat
impl Debug for ImageFormat
Source§impl Display for ImageFormat
impl Display for ImageFormat
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Converts the ImageFormat to its lowercase string representation.
§Examples
use plotly_kaleido::ImageFormat;
assert_eq!(ImageFormat::PNG.to_string(), "png");
assert_eq!(ImageFormat::SVG.to_string(), "svg");
assert_eq!(ImageFormat::PDF.to_string(), "pdf");
assert_eq!(ImageFormat::EPS.to_string(), "eps");
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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