docx_reader/documents/elements/
tabs.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
	}
}