pub struct EditBranchProtectionOption {Show 21 fields
pub approvals_whitelist_teams: Option<Vec<String>>,
pub approvals_whitelist_username: Option<Vec<String>>,
pub block_on_official_review_requests: Option<bool>,
pub block_on_outdated_branch: Option<bool>,
pub block_on_rejected_reviews: Option<bool>,
pub dismiss_stale_approvals: Option<bool>,
pub enable_approvals_whitelist: Option<bool>,
pub enable_merge_whitelist: Option<bool>,
pub enable_push: Option<bool>,
pub enable_push_whitelist: Option<bool>,
pub enable_status_check: Option<bool>,
pub merge_whitelist_teams: Option<Vec<String>>,
pub merge_whitelist_usernames: Option<Vec<String>>,
pub protected_file_patterns: Option<String>,
pub push_whitelist_deploy_keys: Option<bool>,
pub push_whitelist_teams: Option<Vec<String>>,
pub push_whitelist_usernames: Option<Vec<String>>,
pub require_signed_commits: Option<bool>,
pub required_approvals: Option<i64>,
pub status_check_contexts: Option<Vec<String>>,
pub unprotected_file_patterns: Option<String>,
}
Expand description
EditBranchProtectionOption : EditBranchProtectionOption options for editing a branch protection
Fields§
§approvals_whitelist_teams: Option<Vec<String>>
§approvals_whitelist_username: Option<Vec<String>>
§block_on_official_review_requests: Option<bool>
§block_on_outdated_branch: Option<bool>
§block_on_rejected_reviews: Option<bool>
§dismiss_stale_approvals: Option<bool>
§enable_approvals_whitelist: Option<bool>
§enable_merge_whitelist: Option<bool>
§enable_push: Option<bool>
§enable_push_whitelist: Option<bool>
§enable_status_check: Option<bool>
§merge_whitelist_teams: Option<Vec<String>>
§merge_whitelist_usernames: Option<Vec<String>>
§protected_file_patterns: Option<String>
§push_whitelist_deploy_keys: Option<bool>
§push_whitelist_teams: Option<Vec<String>>
§push_whitelist_usernames: Option<Vec<String>>
§require_signed_commits: Option<bool>
§required_approvals: Option<i64>
§status_check_contexts: Option<Vec<String>>
§unprotected_file_patterns: Option<String>
Implementations§
Source§impl EditBranchProtectionOption
impl EditBranchProtectionOption
Sourcepub fn new() -> EditBranchProtectionOption
pub fn new() -> EditBranchProtectionOption
EditBranchProtectionOption options for editing a branch protection
Trait Implementations§
Source§impl Clone for EditBranchProtectionOption
impl Clone for EditBranchProtectionOption
Source§fn clone(&self) -> EditBranchProtectionOption
fn clone(&self) -> EditBranchProtectionOption
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EditBranchProtectionOption
impl Debug for EditBranchProtectionOption
Source§impl Default for EditBranchProtectionOption
impl Default for EditBranchProtectionOption
Source§fn default() -> EditBranchProtectionOption
fn default() -> EditBranchProtectionOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditBranchProtectionOption
impl<'de> Deserialize<'de> for EditBranchProtectionOption
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 EditBranchProtectionOption
impl PartialEq for EditBranchProtectionOption
Source§fn eq(&self, other: &EditBranchProtectionOption) -> bool
fn eq(&self, other: &EditBranchProtectionOption) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EditBranchProtectionOption
Auto Trait Implementations§
impl Freeze for EditBranchProtectionOption
impl RefUnwindSafe for EditBranchProtectionOption
impl Send for EditBranchProtectionOption
impl Sync for EditBranchProtectionOption
impl Unpin for EditBranchProtectionOption
impl UnwindSafe for EditBranchProtectionOption
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