Returns the number of columns needed to represent our headers.
(&self)
| 1642 | impl WebhookHeaders { |
| 1643 | /// Returns the number of columns needed to represent our headers. |
| 1644 | pub fn num_columns(&self) -> usize { |
| 1645 | let header_column = self.header_column.as_ref().map(|_| 1).unwrap_or(0); |
| 1646 | let mapped_headers = self.mapped_headers.len(); |
| 1647 | |
| 1648 | header_column + mapped_headers |
| 1649 | } |
| 1650 | } |
| 1651 | |
| 1652 | #[derive(Clone, Debug, Default, PartialEq, Eq, Serialize)] |
no test coverage detected