//! A library that provides basic building blocks of k-office tools pub mod cass; mod client; pub use client::*; mod invoice; pub use invoice::*; mod proj; pub use proj::*; mod store; pub use store::*; use serde::{de::DeserializeOwned, Serialize}; pub trait Io { fn to_yaml(&self) -> String; fn from_yaml(s: impl Into) -> Self; } impl Io for T where T: Serialize + DeserializeOwned, { fn to_yaml(&self) -> String { serde_yaml::to_string(self).unwrap() } fn from_yaml(s: impl Into) -> Self { serde_yaml::from_str(s.into().as_str()).unwrap() } }