pub struct ConfigInfo { /* private fields */ }Implementations§
Source§impl ConfigInfo
impl ConfigInfo
Sourcepub fn new(
path: String,
salt: Option<String>,
file_type: ConfigType,
) -> Result<Self, ConfigError>
pub fn new( path: String, salt: Option<String>, file_type: ConfigType, ) -> Result<Self, ConfigError>
Sourcepub fn try_get_config<T: DeserializeOwned>(&self) -> Result<T, ConfigError>
pub fn try_get_config<T: DeserializeOwned>(&self) -> Result<T, ConfigError>
pub fn try_encrypt_config(&self) -> Result<String, ConfigError>
pub fn try_decrypt_config(&self) -> Result<String, ConfigError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigInfo
impl RefUnwindSafe for ConfigInfo
impl Send for ConfigInfo
impl Sync for ConfigInfo
impl Unpin for ConfigInfo
impl UnwindSafe for ConfigInfo
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