pub struct ReposUpdatePullRequestReviewProtectionRequest {
pub dismissal_restrictions: Option<Box<ReposUpdateBranchProtectionRequestRequiredPullRequestReviewsDismissalRestrictions>>,
pub dismiss_stale_reviews: Option<bool>,
pub require_code_owner_reviews: Option<bool>,
pub required_approving_review_count: Option<i32>,
pub require_last_push_approval: Option<bool>,
pub bypass_pull_request_allowances: Option<Box<ReposUpdateBranchProtectionRequestRequiredPullRequestReviewsBypassPullRequestAllowances>>,
}
Fields§
§dismissal_restrictions: Option<Box<ReposUpdateBranchProtectionRequestRequiredPullRequestReviewsDismissalRestrictions>>
§dismiss_stale_reviews: Option<bool>
Set to true
if you want to automatically dismiss approving reviews when someone pushes a new commit.
require_code_owner_reviews: Option<bool>
Blocks merging pull requests until code owners have reviewed.
required_approving_review_count: Option<i32>
Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
require_last_push_approval: Option<bool>
Whether the most recent push must be approved by someone other than the person who pushed it. Default: false
bypass_pull_request_allowances: Option<Box<ReposUpdateBranchProtectionRequestRequiredPullRequestReviewsBypassPullRequestAllowances>>
Implementations§
Trait Implementations§
Source§impl Clone for ReposUpdatePullRequestReviewProtectionRequest
impl Clone for ReposUpdatePullRequestReviewProtectionRequest
Source§fn clone(&self) -> ReposUpdatePullRequestReviewProtectionRequest
fn clone(&self) -> ReposUpdatePullRequestReviewProtectionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ReposUpdatePullRequestReviewProtectionRequest
impl Default for ReposUpdatePullRequestReviewProtectionRequest
Source§fn default() -> ReposUpdatePullRequestReviewProtectionRequest
fn default() -> ReposUpdatePullRequestReviewProtectionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposUpdatePullRequestReviewProtectionRequest
impl<'de> Deserialize<'de> for ReposUpdatePullRequestReviewProtectionRequest
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
Source§impl PartialEq for ReposUpdatePullRequestReviewProtectionRequest
impl PartialEq for ReposUpdatePullRequestReviewProtectionRequest
Source§fn eq(&self, other: &ReposUpdatePullRequestReviewProtectionRequest) -> bool
fn eq(&self, other: &ReposUpdatePullRequestReviewProtectionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposUpdatePullRequestReviewProtectionRequest
Auto Trait Implementations§
impl Freeze for ReposUpdatePullRequestReviewProtectionRequest
impl RefUnwindSafe for ReposUpdatePullRequestReviewProtectionRequest
impl Send for ReposUpdatePullRequestReviewProtectionRequest
impl Sync for ReposUpdatePullRequestReviewProtectionRequest
impl Unpin for ReposUpdatePullRequestReviewProtectionRequest
impl UnwindSafe for ReposUpdatePullRequestReviewProtectionRequest
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