pub enum DraftStatus {
Draft,
PendingReview,
Approved {
approved_by: String,
approved_at: DateTime<Utc>,
},
Denied {
reason: String,
denied_by: String,
},
Applied {
applied_at: DateTime<Utc>,
applied_via: ApplyProvenance,
},
Superseded {
superseded_by: Uuid,
},
Closed {
closed_at: DateTime<Utc>,
reason: Option<String>,
closed_by: String,
},
}Expand description
Review status of a draft package (internal tracking, not in JSON schema).
Variants§
Draft
PendingReview
Approved
Denied
Applied
Fields
§
applied_via: ApplyProvenanceHow the draft was applied (v0.15.14.0). Defaults to Manual for
backward-compatible deserialization of older draft files.
Superseded
This draft has been superseded by a follow-up goal’s draft.
Closed
This draft has been manually closed (abandoned, hand-merged, or obsolete).
Trait Implementations§
Source§impl Clone for DraftStatus
impl Clone for DraftStatus
Source§fn clone(&self) -> DraftStatus
fn clone(&self) -> DraftStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DraftStatus
impl Debug for DraftStatus
Source§impl Default for DraftStatus
impl Default for DraftStatus
Source§fn default() -> DraftStatus
fn default() -> DraftStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftStatus
impl<'de> Deserialize<'de> for DraftStatus
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 Display for DraftStatus
impl Display for DraftStatus
Source§impl PartialEq for DraftStatus
impl PartialEq for DraftStatus
Source§impl Serialize for DraftStatus
impl Serialize for DraftStatus
impl Eq for DraftStatus
impl StructuralPartialEq for DraftStatus
Auto Trait Implementations§
impl Freeze for DraftStatus
impl RefUnwindSafe for DraftStatus
impl Send for DraftStatus
impl Sync for DraftStatus
impl Unpin for DraftStatus
impl UnsafeUnpin for DraftStatus
impl UnwindSafe for DraftStatus
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.