pub enum ProjectStatus {
Active,
Archived,
Unknown,
}
Expand description
Project status based on git repository state
This enum represents the current state of a project based on its git repository. It helps identify whether a project is actively maintained or archived.
§Examples
use projets_indexer::models::project::ProjectStatus;
let status = ProjectStatus::Active;
Variants§
Active
Project is actively maintained
This status indicates that the project has recent commits and is being actively developed or maintained.
Archived
Project is archived or no longer maintained
This status indicates that the project has been archived or is no longer being actively maintained. This could be determined by:
- No recent commits
- Presence of an ARCHIVED.md file
- Repository marked as archived on the hosting platform
Unknown
Project status is unknown
This status is used when the project’s state cannot be determined, such as when:
- The directory is not a git repository
- Git commands fail to execute
- The repository is inaccessible
Trait Implementations§
Source§impl Debug for ProjectStatus
impl Debug for ProjectStatus
Source§impl<'de> Deserialize<'de> for ProjectStatus
impl<'de> Deserialize<'de> for ProjectStatus
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 ProjectStatus
impl RefUnwindSafe for ProjectStatus
impl Send for ProjectStatus
impl Sync for ProjectStatus
impl Unpin for ProjectStatus
impl UnwindSafe for ProjectStatus
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