pub struct ProfileDocument { /* private fields */ }Implementations§
Source§impl ProfileDocument
impl ProfileDocument
pub fn active_profile(&self) -> Option<&str>
pub fn profiles(&self) -> &BTreeMap<String, Profile>
pub fn profile(&self, name: &str) -> Option<&Profile>
pub fn insert(&mut self, name: String, profile: Profile) -> Option<Profile>
pub fn remove(&mut self, name: &str) -> Option<Profile>
pub fn set_active_profile(&mut self, name: Option<String>)
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ProfileDocument
impl Clone for ProfileDocument
Source§impl Debug for ProfileDocument
impl Debug for ProfileDocument
Source§impl Default for ProfileDocument
impl Default for ProfileDocument
impl Eq for ProfileDocument
Source§impl PartialEq for ProfileDocument
impl PartialEq for ProfileDocument
impl StructuralPartialEq for ProfileDocument
Auto Trait Implementations§
impl Freeze for ProfileDocument
impl RefUnwindSafe for ProfileDocument
impl Send for ProfileDocument
impl Sync for ProfileDocument
impl Unpin for ProfileDocument
impl UnsafeUnpin for ProfileDocument
impl UnwindSafe for ProfileDocument
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