pub struct YAuthConfig {
pub migration: MigrationConfig,
pub plugins: PluginsConfig,
}Expand description
Top-level yauth.toml configuration.
Fields§
§migration: MigrationConfig§plugins: PluginsConfigImplementations§
Source§impl YAuthConfig
impl YAuthConfig
Sourcepub fn load(path: &Path) -> Result<Self, ConfigError>
pub fn load(path: &Path) -> Result<Self, ConfigError>
Load config from a TOML file.
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate config values.
Trait Implementations§
Source§impl Clone for YAuthConfig
impl Clone for YAuthConfig
Source§fn clone(&self) -> YAuthConfig
fn clone(&self) -> YAuthConfig
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 Debug for YAuthConfig
impl Debug for YAuthConfig
Source§impl<'de> Deserialize<'de> for YAuthConfig
impl<'de> Deserialize<'de> for YAuthConfig
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 YAuthConfig
impl RefUnwindSafe for YAuthConfig
impl Send for YAuthConfig
impl Sync for YAuthConfig
impl Unpin for YAuthConfig
impl UnsafeUnpin for YAuthConfig
impl UnwindSafe for YAuthConfig
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