pub struct DodotConfig {
pub pack: PackSection,
pub symlink: SymlinkSection,
pub path: PathSection,
pub mappings: MappingsSection,
pub preprocessor: PreprocessorSection,
}Expand description
The complete dodot configuration schema.
All fields have compiled defaults via #[config(default = ...)].
Root and pack .dodot.toml files can override any subset.
Fields§
§pack: PackSection§symlink: SymlinkSection§path: PathSection§mappings: MappingsSection§preprocessor: PreprocessorSectionImplementations§
Source§impl DodotConfig
impl DodotConfig
Sourcepub fn to_handler_config(&self) -> HandlerConfig
pub fn to_handler_config(&self) -> HandlerConfig
Convert to the handler-relevant config subset.
Trait Implementations§
Source§impl Clone for DodotConfig
impl Clone for DodotConfig
Source§fn clone(&self) -> DodotConfig
fn clone(&self) -> DodotConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Config for DodotConfig
impl Config for DodotConfig
Source§type Layer = DodotConfigLayer
type Layer = DodotConfigLayer
A layer of
Self (a potentially partial configuration). Read moreSource§fn from_layer(layer: Self::Layer) -> Result<Self, Error>
fn from_layer(layer: Self::Layer) -> Result<Self, Error>
Tries to create
Self from a layer and validates itself. Read moreSource§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
Convenience builder to configure, load and merge multiple configuration
sources. Sources specified earlier have a higher priority; later
sources only fill in the gaps. After all sources have been loaded, the
default values (usually specified with
#[default = ...]) are merged
(with the lowest priority). Read moreSource§impl Debug for DodotConfig
impl Debug for DodotConfig
Source§impl<'de> Deserialize<'de> for DodotConfig
impl<'de> Deserialize<'de> for DodotConfig
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 DodotConfig
impl RefUnwindSafe for DodotConfig
impl Send for DodotConfig
impl Sync for DodotConfig
impl Unpin for DodotConfig
impl UnsafeUnpin for DodotConfig
impl UnwindSafe for DodotConfig
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