#[non_exhaustive]pub enum EditorialState {
Draft,
Proposed,
InReview,
ChangesRequested,
Approved,
Published,
Archived,
Retracted,
}Expand description
Content lifecycle stage.
The default is Published so that collections that
do not opt into editorial flows behave identically to the pre-editorial
behaviour.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Draft
Local-only, not yet shared.
Proposed
Shared for review, not yet approved.
InReview
Actively being reviewed.
ChangesRequested
Reviewers have requested changes.
Approved
Reviewers have approved.
Published
Publicly available — pinned and announced. This is the default state (backward-compatible).
Archived
Deprecated but kept for reference.
Retracted
Published then pulled (tombstone entry remains).
Implementations§
Source§impl EditorialState
impl EditorialState
Sourcepub const fn is_published(self) -> bool
pub const fn is_published(self) -> bool
Whether the content is considered finalised and visible to general consumers.
Sourcepub const fn is_public(self) -> bool
pub const fn is_public(self) -> bool
Whether the content is available for public consumption (published or archived).
Sourcepub const fn is_pre_publication(self) -> bool
pub const fn is_pre_publication(self) -> bool
Whether the state is part of the pre-publication review pipeline.
Sourcepub const fn is_withdrawn(self) -> bool
pub const fn is_withdrawn(self) -> bool
Whether the content has been withdrawn (retracted).
Sourcepub const fn can_transition_to(self, target: Self) -> bool
pub const fn can_transition_to(self, target: Self) -> bool
Check whether a transition from self to target is a valid editorial
workflow step.
Content that enters the editorial pipeline at Draft must go through
review (Proposed → InReview → Approved) before being published.
Retracted content must complete the full review cycle again before
re-publishing — Draft → Published is not permitted.
Trait Implementations§
Source§impl Clone for EditorialState
impl Clone for EditorialState
Source§fn clone(&self) -> EditorialState
fn clone(&self) -> EditorialState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EditorialState
Source§impl Debug for EditorialState
impl Debug for EditorialState
Source§impl Default for EditorialState
impl Default for EditorialState
Source§fn default() -> EditorialState
fn default() -> EditorialState
Source§impl<'de> Deserialize<'de> for EditorialState
impl<'de> Deserialize<'de> for EditorialState
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>,
impl Eq for EditorialState
Source§impl Hash for EditorialState
impl Hash for EditorialState
Source§impl PartialEq for EditorialState
impl PartialEq for EditorialState
Source§impl Serialize for EditorialState
impl Serialize for EditorialState
impl StructuralPartialEq for EditorialState
Auto Trait Implementations§
impl Freeze for EditorialState
impl RefUnwindSafe for EditorialState
impl Send for EditorialState
impl Sync for EditorialState
impl Unpin for EditorialState
impl UnsafeUnpin for EditorialState
impl UnwindSafe for EditorialState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more