pub enum DraftOrigin {
Learned,
Import,
Unknown,
}Expand description
1.9: the origin of a draft. Every origin passes the same engine admission filter before upload.
Variants§
Learned
Learned from sessions (the default).
Import
Imported from the repo’s docs or git history. Its sources are
import:docs:<path>#<slug> or import:git:<sha>.
Unknown
Trait Implementations§
Source§impl Clone for DraftOrigin
impl Clone for DraftOrigin
impl Copy for DraftOrigin
Source§impl Debug for DraftOrigin
impl Debug for DraftOrigin
Source§impl<'de> Deserialize<'de> for DraftOrigin
impl<'de> Deserialize<'de> for DraftOrigin
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 DraftOrigin
Source§impl PartialEq for DraftOrigin
impl PartialEq for DraftOrigin
Source§impl Serialize for DraftOrigin
impl Serialize for DraftOrigin
impl StructuralPartialEq for DraftOrigin
Auto Trait Implementations§
impl Forget for DraftOrigin
impl Freeze for DraftOrigin
impl Move for DraftOrigin
impl RefUnwindSafe for DraftOrigin
impl Send for DraftOrigin
impl Sync for DraftOrigin
impl Unpin for DraftOrigin
impl UnsafeUnpin for DraftOrigin
impl UnwindSafe for DraftOrigin
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