pub struct Config {
pub encoded: Option<File>,
pub decoded: Option<File>,
}Fields§
§encoded: Option<File>§decoded: Option<File>Implementations§
Source§impl Config
impl Config
pub fn load( encoded_path: Option<&str>, decoded_path: Option<&str>, ) -> Result<Self, ConfigError>
pub fn save(&self, encoded_path: &str) -> Result<(), ConfigError>
pub fn export(&self, env: &str) -> Result<String, ConfigError>
pub fn apply(&mut self, env: Option<String>) -> Result<(), ConfigError>
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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