compose_lens/model/
dns_option.rs1use crate::source::SourceSpan;
4
5use super::Located;
6
7#[derive(Debug, Clone, PartialEq, Eq)]
12pub struct DnsOptions {
13 span: SourceSpan,
14 items: Vec<Located<String>>,
15}
16
17impl DnsOptions {
18 pub(crate) const fn new(span: SourceSpan, items: Vec<Located<String>>) -> Self {
19 Self { span, items }
20 }
21
22 #[must_use]
24 pub const fn span(&self) -> SourceSpan {
25 self.span
26 }
27
28 #[must_use]
30 pub fn items(&self) -> &[Located<String>] {
31 &self.items
32 }
33}