use crate::MessageStructEnum;
#[repr(C)]
#[derive(Debug, Clone)]
pub struct ExtConfig {
pub structured: MessageStructEnum,
pub hostname: bool,
pub pname: bool,
pub pid: bool,
pub tname: bool,
pub tid: bool,
}
impl ExtConfig {
pub fn new(
structured: MessageStructEnum,
hostname: bool,
pname: bool,
pid: bool,
tname: bool,
tid: bool,
) -> Self {
Self {
structured,
hostname,
pname,
pid,
tname,
tid,
}
}
}
impl Default for ExtConfig {
fn default() -> Self {
Self {
hostname: false,
pname: false,
pid: false,
tname: false,
tid: false,
structured: MessageStructEnum::String,
}
}
}