pub struct FsGatewayConfigStore { /* private fields */ }Implementations§
Source§impl FsGatewayConfigStore
impl FsGatewayConfigStore
pub fn new(home: PathBuf) -> Self
pub fn from_paths(paths: GatewayPaths) -> Self
pub fn paths(&self) -> &GatewayPaths
pub fn install_default(&self) -> Result<GatewayConfig, ConfigError>
pub fn load_or_install_default(&self) -> Result<GatewayConfig, ConfigError>
pub fn load(&self) -> Result<GatewayConfig, ConfigError>
pub fn save(&self, cfg: &GatewayConfig) -> Result<(), ConfigError>
pub fn write_env_secret( &self, key: &str, value: &str, ) -> Result<(), ConfigError>
Trait Implementations§
Source§impl Clone for FsGatewayConfigStore
impl Clone for FsGatewayConfigStore
Source§fn clone(&self) -> FsGatewayConfigStore
fn clone(&self) -> FsGatewayConfigStore
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 moreAuto Trait Implementations§
impl Freeze for FsGatewayConfigStore
impl RefUnwindSafe for FsGatewayConfigStore
impl Send for FsGatewayConfigStore
impl Sync for FsGatewayConfigStore
impl Unpin for FsGatewayConfigStore
impl UnsafeUnpin for FsGatewayConfigStore
impl UnwindSafe for FsGatewayConfigStore
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