pub struct PullRequestRule {
pub dismiss_stale_reviews_on_push: bool,
pub require_code_owner_review: bool,
pub require_last_push_approval: bool,
pub required_approving_review_count: u8,
pub required_review_thread_resolution: bool,
pub allowed_merge_methods: Vec<MergeMethod>,
pub dismissal_restriction: Option<DismissalRestriction>,
}Expand description
The pull request rule of a ruleset.
Fields§
§dismiss_stale_reviews_on_push: boolWhether a new push dismisses existing approvals.
require_code_owner_review: boolWhether a code owner must approve.
require_last_push_approval: boolWhether someone other than the last pusher must approve.
required_approving_review_count: u8The number of approving reviews required before merging.
required_review_thread_resolution: boolWhether all review threads must be resolved.
allowed_merge_methods: Vec<MergeMethod>The merge methods the pull request may use.
dismissal_restriction: Option<DismissalRestriction>Who may dismiss reviews, when restricted.
Trait Implementations§
Source§impl Clone for PullRequestRule
impl Clone for PullRequestRule
Source§fn clone(&self) -> PullRequestRule
fn clone(&self) -> PullRequestRule
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 PullRequestRule
impl Debug for PullRequestRule
impl Eq for PullRequestRule
Source§impl<'ʄ> Facet<'ʄ> for PullRequestRule
impl<'ʄ> Facet<'ʄ> for PullRequestRule
Source§impl PartialEq for PullRequestRule
impl PartialEq for PullRequestRule
impl StructuralPartialEq for PullRequestRule
Auto Trait Implementations§
impl Freeze for PullRequestRule
impl RefUnwindSafe for PullRequestRule
impl Send for PullRequestRule
impl Sync for PullRequestRule
impl Unpin for PullRequestRule
impl UnsafeUnpin for PullRequestRule
impl UnwindSafe for PullRequestRule
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
Compare self to
key and return true if they are equal.