pub struct SvgConfig {
pub width: f64,
pub height: f64,
pub background: String,
pub font_family: String,
pub min_font_size: f64,
pub include_manifest: bool,
}Expand description
SVG renderer configuration.
Fields§
§width: f64Canvas width in pixels.
height: f64Canvas height in pixels.
background: StringBackground color hex.
font_family: StringFont family for text elements.
min_font_size: f64Minimum font size (Grid Protocol: 18px).
include_manifest: boolWhether to include the grid manifest comment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SvgConfig
impl<'de> Deserialize<'de> for SvgConfig
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
Auto Trait Implementations§
impl Freeze for SvgConfig
impl RefUnwindSafe for SvgConfig
impl Send for SvgConfig
impl Sync for SvgConfig
impl Unpin for SvgConfig
impl UnsafeUnpin for SvgConfig
impl UnwindSafe for SvgConfig
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