charming 0.1.2

A visualization library for Rust
use serde::Serialize;

#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct SplitArea {
    #[serde(skip_serializing_if = "Option::is_none")]
    show: Option<bool>,
}

impl SplitArea {
    pub fn new() -> Self {
        Self { show: None }
    }

    pub fn show(mut self, show: bool) -> Self {
        self.show = Some(show);
        self
    }
}