pub struct ProjectRegistry {
pub projects: Vec<ProjectRecord>,
}Fields§
§projects: Vec<ProjectRecord>Implementations§
Source§impl ProjectRegistry
impl ProjectRegistry
pub fn load(path: &Path) -> Result<Self>
pub fn save(&self, path: &Path) -> Result<()>
pub fn upsert(&mut self, record: ProjectRecord)
pub fn resolve<'a>(&'a self, selector: &str) -> Option<&'a ProjectRecord>
pub fn remove(&mut self, selector: &str) -> Option<ProjectRecord>
Trait Implementations§
Source§impl Clone for ProjectRegistry
impl Clone for ProjectRegistry
Source§fn clone(&self) -> ProjectRegistry
fn clone(&self) -> ProjectRegistry
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 ProjectRegistry
impl Debug for ProjectRegistry
Source§impl Default for ProjectRegistry
impl Default for ProjectRegistry
Source§fn default() -> ProjectRegistry
fn default() -> ProjectRegistry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectRegistry
impl<'de> Deserialize<'de> for ProjectRegistry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectRegistry
impl RefUnwindSafe for ProjectRegistry
impl Send for ProjectRegistry
impl Sync for ProjectRegistry
impl Unpin for ProjectRegistry
impl UnsafeUnpin for ProjectRegistry
impl UnwindSafe for ProjectRegistry
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