pub struct ConfigProjectDirectory {
pub file_path: PathBuf,
pub projects_directory: PathBuf,
pub include: Vec<GroupItem>,
}Fields§
§file_path: PathBuf§projects_directory: PathBuf§include: Vec<GroupItem>Implementations§
Source§impl ConfigProjectDirectory
impl ConfigProjectDirectory
pub fn new(path: &Path) -> Result<Self>
pub fn resolve_projects(&self) -> Result<Vec<ConfigProject>>
pub fn add_config_projects( &mut self, projects: Vec<ConfigProject>, ) -> Result<()>
pub fn save_file(&self) -> Result<()>
Trait Implementations§
Source§impl Debug for ConfigProjectDirectory
impl Debug for ConfigProjectDirectory
Source§impl<'de> Deserialize<'de> for ConfigProjectDirectory
impl<'de> Deserialize<'de> for ConfigProjectDirectory
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
Source§impl PartialEq for ConfigProjectDirectory
impl PartialEq for ConfigProjectDirectory
Source§impl Serialize for ConfigProjectDirectory
impl Serialize for ConfigProjectDirectory
impl Eq for ConfigProjectDirectory
impl StructuralPartialEq for ConfigProjectDirectory
Auto Trait Implementations§
impl Freeze for ConfigProjectDirectory
impl RefUnwindSafe for ConfigProjectDirectory
impl Send for ConfigProjectDirectory
impl Sync for ConfigProjectDirectory
impl Unpin for ConfigProjectDirectory
impl UnwindSafe for ConfigProjectDirectory
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.