pub enum ProjectStatus {
Active,
Inactive,
}Expand description
A project’s activation status (dsp-cli vocabulary for DSP-API’s status bool).
Why an enum over active: bool: mirrors the DumpStatus precedent and
keeps the active/inactive display words as a single source of truth — the
vocabulary ADR wants dsp-cli terms defined once. Wire (bool) → enum translation
happens at the client boundary (http.rs), never here. Deliberate — not
over-engineering. See ADR-0001 and ADR-0008.
Variants§
Implementations§
Source§impl ProjectStatus
impl ProjectStatus
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Return the canonical lower-case display string for this status.
This is the single source of truth for the status word used in
project list output (human prose, JSON, tabular formats). Wire
(bool) → enum translation happens in the HTTP client layer (http.rs)
and is intentionally NOT delegated here.
Trait Implementations§
Source§impl Clone for ProjectStatus
impl Clone for ProjectStatus
Source§fn clone(&self) -> ProjectStatus
fn clone(&self) -> ProjectStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProjectStatus
Source§impl Debug for ProjectStatus
impl Debug for ProjectStatus
impl Eq for ProjectStatus
Source§impl PartialEq for ProjectStatus
impl PartialEq for ProjectStatus
impl StructuralPartialEq for ProjectStatus
Auto Trait Implementations§
impl Freeze for ProjectStatus
impl RefUnwindSafe for ProjectStatus
impl Send for ProjectStatus
impl Sync for ProjectStatus
impl Unpin for ProjectStatus
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.