chrony-confile 0.1.0

A full-featured Rust library for parsing, editing, validating, and serializing chrony configuration files
Documentation
//! Miscellaneous configuration types.
//!
//! These directives do not fit neatly into other categories: file paths (`pidfile`, `keyfile`,
//! `dumpdir`), runtime behaviour (`user`, `sched_priority`, `lock_all`), and configuration
//! composition (`include`, `confdir`, `sourcedir`).

use crate::values::*;

#[derive(Debug, Clone, PartialEq)]
pub struct ConfDirConfig { pub directory: String }

#[derive(Debug, Clone, PartialEq)]
pub struct IncludeConfig { pub pattern: String }

#[derive(Debug, Clone, PartialEq)]
pub struct SourceDirConfig { pub directory: String }

#[derive(Debug, Clone, PartialEq)]
pub struct MailOnChangeConfig { pub email: String, pub threshold: f64 }

#[derive(Debug, Clone, PartialEq)]
pub struct PidFileConfig { pub file: String }

#[derive(Debug, Clone, PartialEq)]
pub struct SchedPriorityConfig { pub priority: SchedPriority }

#[derive(Debug, Clone, PartialEq)]
pub struct UserConfig { pub user: String }

#[derive(Debug, Clone, PartialEq)]
pub struct KeyFileConfig { pub file: String }

#[derive(Debug, Clone, PartialEq)]
pub struct AcquisitionPortConfig { pub port: UdpPort }

#[derive(Debug, Clone, PartialEq)]
pub struct DscpConfig { pub dscp: Dscp }

#[derive(Debug, Clone, PartialEq)]
pub struct DumpDirConfig { pub directory: String }

#[derive(Debug, Clone, PartialEq)]
pub struct NtsDumpDirConfig { pub directory: String }

#[derive(Debug, Clone, PartialEq)]
pub struct NtsRefreshConfig { pub interval: u32 }

#[derive(Debug, Clone, PartialEq)]
pub struct NtsTrustedCertsConfig { pub set_id: u32, pub path: String }

#[derive(Debug, Clone, PartialEq)]
pub struct NoCertTimeCheckConfig { pub limit: u32 }

#[derive(Debug, Clone, PartialEq)]
pub struct RefreshConfig { pub interval: u32 }

#[derive(Debug, Clone, PartialEq)]
pub struct MaxSamplesConfig { pub samples: u32 }

#[derive(Debug, Clone, PartialEq)]
pub struct MinSamplesConfig { pub samples: u32 }