pub enum ReviewPolicy {
Normal,
Require {
reviewers: i64,
reason: String,
},
Block {
reason: String,
},
}Expand description
What a review policy demands, as the application receives it.
The mirror of rules.policy.ReviewPolicy, and the type an embedder’s
caller actually acts on: nothing downstream of Decision::from_cove
holds a Value.
Variants§
Normal
Nothing beyond what the repository asks of every change.
Require
Reviewers, and the reason they are being asked for.
Block
The change may not land, and why.
Trait Implementations§
Source§impl Clone for ReviewPolicy
impl Clone for ReviewPolicy
Source§fn clone(&self) -> ReviewPolicy
fn clone(&self) -> ReviewPolicy
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 moreSource§impl Debug for ReviewPolicy
impl Debug for ReviewPolicy
impl Eq for ReviewPolicy
Source§impl PartialEq for ReviewPolicy
impl PartialEq for ReviewPolicy
Source§fn eq(&self, other: &ReviewPolicy) -> bool
fn eq(&self, other: &ReviewPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReviewPolicy
Auto Trait Implementations§
impl Freeze for ReviewPolicy
impl RefUnwindSafe for ReviewPolicy
impl Send for ReviewPolicy
impl Sync for ReviewPolicy
impl Unpin for ReviewPolicy
impl UnsafeUnpin for ReviewPolicy
impl UnwindSafe for ReviewPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.