pub struct ProtectedBranchPullRequestReview {
pub url: Option<String>,
pub dismissal_restrictions: Option<Box<ProtectedBranchPullRequestReviewDismissalRestrictions>>,
pub bypass_pull_request_allowances: Option<Box<ProtectedBranchPullRequestReviewBypassPullRequestAllowances>>,
pub dismiss_stale_reviews: bool,
pub require_code_owner_reviews: bool,
pub required_approving_review_count: Option<i32>,
pub require_last_push_approval: Option<bool>,
}
Expand description
ProtectedBranchPullRequestReview : Protected Branch Pull Request Review
Fields§
§url: Option<String>
§dismissal_restrictions: Option<Box<ProtectedBranchPullRequestReviewDismissalRestrictions>>
§bypass_pull_request_allowances: Option<Box<ProtectedBranchPullRequestReviewBypassPullRequestAllowances>>
§dismiss_stale_reviews: bool
§require_code_owner_reviews: bool
§required_approving_review_count: Option<i32>
§require_last_push_approval: Option<bool>
Whether the most recent push must be approved by someone other than the person who pushed it.
Implementations§
Source§impl ProtectedBranchPullRequestReview
impl ProtectedBranchPullRequestReview
Sourcepub fn new(
dismiss_stale_reviews: bool,
require_code_owner_reviews: bool,
) -> ProtectedBranchPullRequestReview
pub fn new( dismiss_stale_reviews: bool, require_code_owner_reviews: bool, ) -> ProtectedBranchPullRequestReview
Protected Branch Pull Request Review
Trait Implementations§
Source§impl Clone for ProtectedBranchPullRequestReview
impl Clone for ProtectedBranchPullRequestReview
Source§fn clone(&self) -> ProtectedBranchPullRequestReview
fn clone(&self) -> ProtectedBranchPullRequestReview
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 ProtectedBranchPullRequestReview
impl Default for ProtectedBranchPullRequestReview
Source§fn default() -> ProtectedBranchPullRequestReview
fn default() -> ProtectedBranchPullRequestReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtectedBranchPullRequestReview
impl<'de> Deserialize<'de> for ProtectedBranchPullRequestReview
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 ProtectedBranchPullRequestReview
impl PartialEq for ProtectedBranchPullRequestReview
Source§fn eq(&self, other: &ProtectedBranchPullRequestReview) -> bool
fn eq(&self, other: &ProtectedBranchPullRequestReview) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ProtectedBranchPullRequestReview
Auto Trait Implementations§
impl Freeze for ProtectedBranchPullRequestReview
impl RefUnwindSafe for ProtectedBranchPullRequestReview
impl Send for ProtectedBranchPullRequestReview
impl Sync for ProtectedBranchPullRequestReview
impl Unpin for ProtectedBranchPullRequestReview
impl UnwindSafe for ProtectedBranchPullRequestReview
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