use crate::{HeredocIndentation, HeredocQuoteType};
#[derive(Debug, Clone, Default)]
pub struct Metadata<'a> {
pub file: Option<&'a str>,
pub(crate) quote_delimiter: Option<char>,
pub(crate) heredoc: Option<Box<HeredocMetadata<'a>>>,
}
#[derive(Debug, Clone, Default)]
pub struct HeredocMetadata<'a> {
pub(crate) quote_type: Option<HeredocQuoteType>,
pub(crate) indentation: Option<HeredocIndentation>,
pub(crate) identifier: Option<&'a str>,
#[cfg(test)]
pub(crate) should_leak: bool,
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn test_metadata_size() {
assert_eq!(32, std::mem::size_of::<Metadata>());
}
}