pub struct ProfileLoader;Implementations§
Source§impl ProfileLoader
impl ProfileLoader
pub fn load_from_path(profile_path: &Path) -> Result<Profile>
pub fn load(services_path: &Path, profile_name: &str) -> Result<Profile>
pub fn load_from_path_and_validate(profile_path: &Path) -> Result<Profile>
pub fn load_and_validate( services_path: &Path, profile_name: &str, ) -> Result<Profile>
pub fn save(profile: &Profile, services_path: &Path) -> Result<()>
pub fn list_available(services_path: &Path) -> Vec<String>
Trait Implementations§
Source§impl Clone for ProfileLoader
impl Clone for ProfileLoader
Source§fn clone(&self) -> ProfileLoader
fn clone(&self) -> ProfileLoader
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 ProfileLoader
impl Debug for ProfileLoader
impl Copy for ProfileLoader
Auto Trait Implementations§
impl Freeze for ProfileLoader
impl RefUnwindSafe for ProfileLoader
impl Send for ProfileLoader
impl Sync for ProfileLoader
impl Unpin for ProfileLoader
impl UnwindSafe for ProfileLoader
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