Skip to main content

Module editorial

Module editorial 

Source
Expand description

Opt-in editorial workflow primitives for collections.

Every type in this module is optional — collections that carry no editorial metadata behave identically to the pre-editorial system. Consumers opt into editorial flows by subscribing to named Channels over gossip.

§Quick start

ⓘ
use syncweb_core::editorial::{
    Channel, ContentType, EditorialRole, EditorialState,
    workflow::assert_transition,
};

let curated = Channel::new("curated", Some("Editor-approved content"));
assert_eq!(curated.topic_seed(), "syncweb/editorial/curated/v1");

assert!(assert_transition(
    Some(EditorialState::Draft),
    EditorialState::Proposed,
    EditorialRole::Maintainer,
).is_ok());

Re-exports§

pub use channel::Channel;
pub use content_type::ContentType;
pub use role::EditorialRole;
pub use state::EditorialState;

Modules§

channel
content_type
role
state
workflow