pub enum ReviewVerdict {
Approve,
RequestChanges,
}Expand description
What a formal pull request review says. Verdict is what a model
answers; this is what spar submits, and spar never asks a model for it.
It is derived from the findings: approve when nothing blocks, request
changes when something both reviewers count does.
Variants§
Implementations§
Source§impl ReviewVerdict
impl ReviewVerdict
pub fn as_str(self) -> &'static str
Sourcepub fn parse_lenient(text: &str) -> Option<Self>
pub fn parse_lenient(text: &str) -> Option<Self>
Accept the canonical spelling, any listed alias, and any difference in case, spacing, hyphens, or underscores.
pub fn valid_values() -> String
Trait Implementations§
Source§impl Clone for ReviewVerdict
impl Clone for ReviewVerdict
impl Copy for ReviewVerdict
Source§impl Debug for ReviewVerdict
impl Debug for ReviewVerdict
Source§impl<'de> Deserialize<'de> for ReviewVerdict
impl<'de> Deserialize<'de> for ReviewVerdict
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ReviewVerdict
impl Display for ReviewVerdict
impl Eq for ReviewVerdict
Source§impl Hash for ReviewVerdict
impl Hash for ReviewVerdict
Source§impl Ord for ReviewVerdict
impl Ord for ReviewVerdict
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReviewVerdict
impl PartialEq for ReviewVerdict
Source§impl PartialOrd for ReviewVerdict
impl PartialOrd for ReviewVerdict
Source§impl Serialize for ReviewVerdict
impl Serialize for ReviewVerdict
impl StructuralPartialEq for ReviewVerdict
Auto Trait Implementations§
impl Freeze for ReviewVerdict
impl RefUnwindSafe for ReviewVerdict
impl Send for ReviewVerdict
impl Sync for ReviewVerdict
impl Unpin for ReviewVerdict
impl UnsafeUnpin for ReviewVerdict
impl UnwindSafe for ReviewVerdict
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.