pub struct Settings { /* private fields */ }Expand description
Top-level Genja configuration.
Missing sections deserialize to their defaults.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn from_file(file_path: &str) -> Result<Self, ConfigLoadError>
pub fn from_file(file_path: &str) -> Result<Self, ConfigLoadError>
Loads settings from a .json, .yaml, or .yml file.
Missing fields fall back to defaults. If an SSH config path is configured, it is validated after deserialization.
pub fn core(&self) -> &CoreConfig
pub fn inventory(&self) -> &InventoryConfig
pub fn ssh(&self) -> &SSHConfig
pub fn runner(&self) -> &RunnerConfig
pub fn logging(&self) -> &LoggingConfig
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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