pub struct ProjectStatus {
pub archived: bool,
pub issues_access_level: Option<String>,
pub issues_enabled: Option<bool>,
}Expand description
A project’s status flags relevant to filing issues. Fetched from the project endpoint; the issue-feature flags only appear for authenticated requests.
Fields§
§archived: boolArchived projects are read-only — issue writes return 403.
issues_access_level: Option<String>Modern feature gate: "enabled", "private", or
"disabled". Preferred over issues_enabled when present.
issues_enabled: Option<bool>Legacy boolean for the Issues feature; still returned by
GitLab alongside issues_access_level.
Implementations§
Source§impl ProjectStatus
impl ProjectStatus
Sourcepub fn issues_feature_enabled(&self) -> bool
pub fn issues_feature_enabled(&self) -> bool
Whether the Issues feature is on (independent of archival),
preferring issues_access_level and falling back to the
legacy issues_enabled; assumes on when neither is present.
Sourcepub fn can_file_issues(&self) -> bool
pub fn can_file_issues(&self) -> bool
Whether a new issue can be filed: the project is writable (not archived) and the Issues feature is enabled.
Sourcepub fn issue_block_reason(&self) -> Option<&'static str>
pub fn issue_block_reason(&self) -> Option<&'static str>
Human-readable reason issues can’t be filed here, or None
when they can.
Trait Implementations§
Source§impl Clone for ProjectStatus
impl Clone for ProjectStatus
Source§fn clone(&self) -> ProjectStatus
fn clone(&self) -> ProjectStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more