pub struct RepositoryRuleRequiredStatusChecksParameters {
pub required_status_checks: Vec<RepositoryRuleParamsStatusCheckConfiguration>,
pub strict_required_status_checks_policy: bool,
}
Fields§
§required_status_checks: Vec<RepositoryRuleParamsStatusCheckConfiguration>
Status checks that are required.
strict_required_status_checks_policy: bool
Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
Implementations§
Source§impl RepositoryRuleRequiredStatusChecksParameters
impl RepositoryRuleRequiredStatusChecksParameters
pub fn new( required_status_checks: Vec<RepositoryRuleParamsStatusCheckConfiguration>, strict_required_status_checks_policy: bool, ) -> RepositoryRuleRequiredStatusChecksParameters
Trait Implementations§
Source§impl Clone for RepositoryRuleRequiredStatusChecksParameters
impl Clone for RepositoryRuleRequiredStatusChecksParameters
Source§fn clone(&self) -> RepositoryRuleRequiredStatusChecksParameters
fn clone(&self) -> RepositoryRuleRequiredStatusChecksParameters
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 RepositoryRuleRequiredStatusChecksParameters
impl Default for RepositoryRuleRequiredStatusChecksParameters
Source§fn default() -> RepositoryRuleRequiredStatusChecksParameters
fn default() -> RepositoryRuleRequiredStatusChecksParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryRuleRequiredStatusChecksParameters
impl<'de> Deserialize<'de> for RepositoryRuleRequiredStatusChecksParameters
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 RepositoryRuleRequiredStatusChecksParameters
impl PartialEq for RepositoryRuleRequiredStatusChecksParameters
Source§fn eq(&self, other: &RepositoryRuleRequiredStatusChecksParameters) -> bool
fn eq(&self, other: &RepositoryRuleRequiredStatusChecksParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RepositoryRuleRequiredStatusChecksParameters
Auto Trait Implementations§
impl Freeze for RepositoryRuleRequiredStatusChecksParameters
impl RefUnwindSafe for RepositoryRuleRequiredStatusChecksParameters
impl Send for RepositoryRuleRequiredStatusChecksParameters
impl Sync for RepositoryRuleRequiredStatusChecksParameters
impl Unpin for RepositoryRuleRequiredStatusChecksParameters
impl UnwindSafe for RepositoryRuleRequiredStatusChecksParameters
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