pub struct RepositoryRulePullRequestParameters {
pub dismiss_stale_reviews_on_push: bool,
pub require_code_owner_review: bool,
pub require_last_push_approval: bool,
pub required_approving_review_count: i32,
pub required_review_thread_resolution: bool,
}
Fields§
§dismiss_stale_reviews_on_push: bool
New, reviewable commits pushed will dismiss previous pull request review approvals.
require_code_owner_review: bool
Require an approving review in pull requests that modify files that have a designated code owner.
require_last_push_approval: bool
Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
required_approving_review_count: i32
The number of approving reviews that are required before a pull request can be merged.
required_review_thread_resolution: bool
All conversations on code must be resolved before a pull request can be merged.
Implementations§
Trait Implementations§
Source§impl Clone for RepositoryRulePullRequestParameters
impl Clone for RepositoryRulePullRequestParameters
Source§fn clone(&self) -> RepositoryRulePullRequestParameters
fn clone(&self) -> RepositoryRulePullRequestParameters
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 RepositoryRulePullRequestParameters
impl Default for RepositoryRulePullRequestParameters
Source§fn default() -> RepositoryRulePullRequestParameters
fn default() -> RepositoryRulePullRequestParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryRulePullRequestParameters
impl<'de> Deserialize<'de> for RepositoryRulePullRequestParameters
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 RepositoryRulePullRequestParameters
impl PartialEq for RepositoryRulePullRequestParameters
Source§fn eq(&self, other: &RepositoryRulePullRequestParameters) -> bool
fn eq(&self, other: &RepositoryRulePullRequestParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RepositoryRulePullRequestParameters
Auto Trait Implementations§
impl Freeze for RepositoryRulePullRequestParameters
impl RefUnwindSafe for RepositoryRulePullRequestParameters
impl Send for RepositoryRulePullRequestParameters
impl Sync for RepositoryRulePullRequestParameters
impl Unpin for RepositoryRulePullRequestParameters
impl UnwindSafe for RepositoryRulePullRequestParameters
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