pub struct AuthConfig { /* private fields */ }Implementations§
Source§impl AuthConfig
impl AuthConfig
Source§impl AuthConfig
impl AuthConfig
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthConfig
impl Debug for AuthConfig
Source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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
Source§impl EnvEvaluable<AuthConfig> for AuthConfig
impl EnvEvaluable<AuthConfig> for AuthConfig
fn env_eval(self, dict: &EnvDict) -> AuthConfig
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
Source§impl Serialize for AuthConfig
impl Serialize for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_conf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> ConfigLifecycle for T
impl<T> ConfigLifecycle for T
Source§fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
强制加载配置文件
Source§fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
初始化配置文件
Source§fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
安全清理配置文件