docx_reader/documents/elements/tabs.rs
use serde::{Deserialize, Serialize};
use crate::Tab;
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Default)]
pub struct Tabs {
pub tabs: Vec<Tab>,
}
impl Tabs {
pub fn new() -> Self {
Default::default()
}
pub fn add_tab(mut self, t: Tab) -> Self {
self.tabs.push(t);
self
}
}