pub enum LineData<'a> {
Comment(Comment<'a>),
Record {
record: Record<'a>,
extension: Option<Extension<'a>>,
comment: Option<Comment<'a>>,
},
Variable {
variable: Variable<'a>,
extension: Option<Extension<'a>>,
comment: Option<Comment<'a>>,
},
Empty,
Unknown(&'a str),
}
Expand description
Represents the line data of ads.txt.
Variants§
Comment(Comment<'a>)
Comment.
Record
Record.
Variable
Variable record.
Empty
Blank line.
Unknown(&'a str)
Unknown line data.
Trait Implementations§
source§impl<'a> PartialEq for LineData<'a>
impl<'a> PartialEq for LineData<'a>
impl<'a> StructuralPartialEq for LineData<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LineData<'a>
impl<'a> Send for LineData<'a>
impl<'a> Sync for LineData<'a>
impl<'a> Unpin for LineData<'a>
impl<'a> UnwindSafe for LineData<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more