pub enum Drafts {
Never,
UntilApproved,
Always,
}Expand description
Whether a pull request spar opens starts as a draft, and when it stops being one.
A draft says the work is not for a person yet, which is exactly true while
two agents are still arguing about it. UntilApproved makes that state mean
something and clear itself: the loop marks the pull request ready the moment
it has no blocking findings left. Always is for somebody who promotes
every pull request by hand and wants spar to keep out of it.
Variants§
Never
Open ordinary pull requests. The default, and what spar has always done.
UntilApproved
Open as a draft, and mark it ready when the review converges.
Always
Open as a draft and leave it that way.
Trait Implementations§
impl Copy for Drafts
Source§impl<'de> Deserialize<'de> for Drafts
impl<'de> Deserialize<'de> for Drafts
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 Drafts
impl StructuralPartialEq for Drafts
Auto Trait Implementations§
impl Freeze for Drafts
impl RefUnwindSafe for Drafts
impl Send for Drafts
impl Sync for Drafts
impl Unpin for Drafts
impl UnsafeUnpin for Drafts
impl UnwindSafe for Drafts
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
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§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
Compare self to
key and return true if they are equal.