charming_fork_zephyr/element/
minor_split_line.rs

1use serde::Serialize;
2
3use super::line_style::LineStyle;
4
5#[derive(Serialize)]
6#[serde(rename_all = "camelCase")]
7pub struct MinorSplitLine {
8    show: Option<bool>,
9    line_style: Option<LineStyle>,
10}
11
12impl MinorSplitLine {
13    pub fn new() -> MinorSplitLine {
14        MinorSplitLine {
15            show: None,
16            line_style: None,
17        }
18    }
19
20    pub fn show(mut self, show: bool) -> MinorSplitLine {
21        self.show = Some(show);
22        self
23    }
24
25    pub fn line_style<F: Into<LineStyle>>(mut self, line_style: F) -> MinorSplitLine {
26        self.line_style = Some(line_style.into());
27        self
28    }
29}