easy-svg 0.2.2

Author SVGs in Rust through a statically typed system
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Svg;
use crate::shape::Shape;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum SvgElement {
    Shape(Box<Shape>),
    Svg(Svg),
}