pub enum OutboxKind {
Message,
Publish,
}Expand description
What kind of outbound action a staged item is, which decides how it is reviewed rather than how it is staged.
Variants§
Message
Prose somebody wrote and somebody else will read: an email, a calendar invitation, a message. The reviewable object is the arguments, and an edit before release is a writing correction worth learning from.
Publish
A publication to the public surface: a rendered bundle, an alias move, a request-type push. Three things follow, and each is a bug if undone:
- The reviewable object is the rendered page, not the arguments — which are a path and a visibility flag.
editis refused. Editing the content means editing the source and re-rendering, which stages a new item; rewriting the path is not editing the draft.- The writing miner excludes it. Feeding
diff(args_before, args)of a changed directory path to a reflector that mines voice rules would carry noise into every future run’s cached prefix. Same mistake as learning from"Blocked by a hook:", in a new costume.
Implementations§
Trait Implementations§
Source§impl Clone for OutboxKind
impl Clone for OutboxKind
Source§fn clone(&self) -> OutboxKind
fn clone(&self) -> OutboxKind
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 OutboxKind
Source§impl Debug for OutboxKind
impl Debug for OutboxKind
Source§impl Default for OutboxKind
impl Default for OutboxKind
Source§fn default() -> OutboxKind
fn default() -> OutboxKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutboxKind
impl<'de> Deserialize<'de> for OutboxKind
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
impl Eq for OutboxKind
Source§impl PartialEq for OutboxKind
impl PartialEq for OutboxKind
Source§impl Serialize for OutboxKind
impl Serialize for OutboxKind
impl StructuralPartialEq for OutboxKind
Auto Trait Implementations§
impl Freeze for OutboxKind
impl RefUnwindSafe for OutboxKind
impl Send for OutboxKind
impl Sync for OutboxKind
impl Unpin for OutboxKind
impl UnsafeUnpin for OutboxKind
impl UnwindSafe for OutboxKind
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