#[derive(Debug)]
pub struct SvgOptions {
pub padding: i32,
pub height: Option<i32>,
pub markersize: i32,
pub startcol: String,
pub goalcol: String,
pub strokewidth: i32,
pub strokecol: String,
}
impl SvgOptions {
pub fn new() -> Self {
Default::default()
}
}
impl Default for SvgOptions {
fn default() -> Self {
SvgOptions {
height: None,
padding: 10,
markersize: 2,
startcol: String::from("red"),
goalcol: String::from("blue"),
strokewidth: 4,
strokecol: String::from("#000000"),
}
}
}