#[non_exhaustive]pub enum EditorialRole {
Owner,
Maintainer,
Editor,
Reviewer,
Publisher,
Viewer,
}Expand description
Editorial role assigned to a participant.
These are orthogonal to the existing Capability sync roles
(Admin / Write / Read) — they gate content lifecycle transitions
rather than data-plane access.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Owner
Full control over the collection’s editorial lifecycle.
Maintainer
Can create versions, edit entries, and request reviews.
Editor
Can propose edits and respond to review feedback but cannot approve or publish.
Reviewer
Can approve, request changes, or reject proposed content.
Publisher
Can transition approved content to Published.
Viewer
Read-only consumer of curated content — no editorial actions.
Implementations§
Source§impl EditorialRole
impl EditorialRole
Sourcepub const fn can_initiate(self) -> bool
pub const fn can_initiate(self) -> bool
Whether a holder of this role may initiate new content versions.
Sourcepub const fn can_review(self) -> bool
pub const fn can_review(self) -> bool
Whether a holder of this role may approve or reject review items.
Sourcepub const fn can_publish(self) -> bool
pub const fn can_publish(self) -> bool
Whether a holder of this role may publish approved content.
Sourcepub const fn can_withdraw(self) -> bool
pub const fn can_withdraw(self) -> bool
Whether a holder of this role may retract or archive published content.
Trait Implementations§
Source§impl Clone for EditorialRole
impl Clone for EditorialRole
Source§fn clone(&self) -> EditorialRole
fn clone(&self) -> EditorialRole
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 EditorialRole
Source§impl Debug for EditorialRole
impl Debug for EditorialRole
Source§impl Default for EditorialRole
impl Default for EditorialRole
Source§fn default() -> EditorialRole
fn default() -> EditorialRole
Source§impl<'de> Deserialize<'de> for EditorialRole
impl<'de> Deserialize<'de> for EditorialRole
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 EditorialRole
Source§impl Hash for EditorialRole
impl Hash for EditorialRole
Source§impl PartialEq for EditorialRole
impl PartialEq for EditorialRole
Source§impl Serialize for EditorialRole
impl Serialize for EditorialRole
impl StructuralPartialEq for EditorialRole
Auto Trait Implementations§
impl Freeze for EditorialRole
impl RefUnwindSafe for EditorialRole
impl Send for EditorialRole
impl Sync for EditorialRole
impl Unpin for EditorialRole
impl UnsafeUnpin for EditorialRole
impl UnwindSafe for EditorialRole
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