use serde_derive::Serialize;
use tera::Tera;
-#[derive(Debug, Serialize)]
+#[derive(Copy, Clone, Serialize)]
pub enum Align {
Left,
Center,
- Right
+ Right,
}
pub struct Column {
pub fn title(&self) -> String {
format!("{}", self.title)
}
+
+ pub fn set_align(&mut self, align: Align) {
+ self.align = align;
+ }
+
+ pub fn align(&self) -> Align {
+ self.align
+ }
+
+ pub fn set_hidden(&mut self, hidden: bool) {
+ self.hidden = hidden;
+ }
+
+ pub fn hidden(&self) -> bool {
+ self.hidden
+ }
}
pub struct Grid {