pub enum DraftSupport {
None,
StatusField {
reversible: bool,
},
SeparateObjects,
}Expand description
Draft support capability per [[RFC-0005:C-DRAFT-SUPPORT]].
Variants§
None
Platform has no draft concept. Content is always published immediately.
StatusField
Same object with a status field that can be toggled.
reversible indicates whether publish → draft transition is supported.
SeparateObjects
Draft and published content are separate objects with different IDs.
Implementations§
Trait Implementations§
Source§impl Clone for DraftSupport
impl Clone for DraftSupport
Source§fn clone(&self) -> DraftSupport
fn clone(&self) -> DraftSupport
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 DraftSupport
impl Debug for DraftSupport
Source§impl<'de> Deserialize<'de> for DraftSupport
Custom serde: TOML uses flat strings like "none", "status_field_reversible".
impl<'de> Deserialize<'de> for DraftSupport
Custom serde: TOML uses flat strings like "none", "status_field_reversible".
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 PartialEq for DraftSupport
impl PartialEq for DraftSupport
Source§impl Serialize for DraftSupport
impl Serialize for DraftSupport
impl Copy for DraftSupport
impl Eq for DraftSupport
impl StructuralPartialEq for DraftSupport
Auto Trait Implementations§
impl Freeze for DraftSupport
impl RefUnwindSafe for DraftSupport
impl Send for DraftSupport
impl Sync for DraftSupport
impl Unpin for DraftSupport
impl UnsafeUnpin for DraftSupport
impl UnwindSafe for DraftSupport
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