pub struct ResolvedProjectDirectory {
pub resolved_from_path: PathBuf,
pub projects_directory: PathBuf,
pub projects: Vec<ConfigProject>,
}Fields§
§resolved_from_path: PathBuf§projects_directory: PathBuf§projects: Vec<ConfigProject>Implementations§
Source§impl ResolvedProjectDirectory
impl ResolvedProjectDirectory
pub fn new(project_directory_file: &ConfigProjectDirectory) -> Result<Self>
pub fn new_filtered( project_directory_file: &ConfigProjectDirectory, tags: &Vec<String>, ) -> Result<Self>
pub fn get_project(&self) -> Result<ResolvedProject>
pub fn get_projects_from_remotes(&self) -> Result<Vec<ResolvedProject>>
pub fn get_projects_from_fs( path: &Path, ) -> Result<(Vec<ResolvedProject>, Vec<PathBuf>)>
pub fn pick_project(projects: Vec<ResolvedProject>) -> Result<ResolvedProject>
pub fn pick_projects( pickable_projects: Vec<ResolvedProject>, ) -> Result<Vec<ResolvedProject>>
pub fn pick_config_projects( pickable_projects: Vec<ConfigProject>, ) -> Result<Vec<ConfigProject>>
pub fn add_config_projects( &mut self, projects: Vec<ConfigProject>, ) -> Result<()>
Trait Implementations§
Source§impl Debug for ResolvedProjectDirectory
impl Debug for ResolvedProjectDirectory
Source§impl<'de> Deserialize<'de> for ResolvedProjectDirectory
impl<'de> Deserialize<'de> for ResolvedProjectDirectory
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 ResolvedProjectDirectory
impl PartialEq for ResolvedProjectDirectory
Source§impl Serialize for ResolvedProjectDirectory
impl Serialize for ResolvedProjectDirectory
impl Eq for ResolvedProjectDirectory
impl StructuralPartialEq for ResolvedProjectDirectory
Auto Trait Implementations§
impl Freeze for ResolvedProjectDirectory
impl RefUnwindSafe for ResolvedProjectDirectory
impl Send for ResolvedProjectDirectory
impl Sync for ResolvedProjectDirectory
impl Unpin for ResolvedProjectDirectory
impl UnwindSafe for ResolvedProjectDirectory
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.