pub struct CreateBranchProtectionOption {Show 24 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 branch_name: Option<String>,
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 ignore_stale_approvals: 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 rule_name: Option<String>,
pub status_check_contexts: Option<Vec<String>>,
pub unprotected_file_patterns: Option<String>,
}
Expand description
CreateBranchProtectionOption : CreateBranchProtectionOption options for creating 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>
§branch_name: Option<String>
Deprecated: true
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>
§ignore_stale_approvals: 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>
§rule_name: Option<String>
§status_check_contexts: Option<Vec<String>>
§unprotected_file_patterns: Option<String>
Implementations§
Source§impl CreateBranchProtectionOption
impl CreateBranchProtectionOption
Sourcepub fn new() -> CreateBranchProtectionOption
pub fn new() -> CreateBranchProtectionOption
CreateBranchProtectionOption options for creating a branch protection
Trait Implementations§
Source§impl Clone for CreateBranchProtectionOption
impl Clone for CreateBranchProtectionOption
Source§fn clone(&self) -> CreateBranchProtectionOption
fn clone(&self) -> CreateBranchProtectionOption
Returns a copy 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 Debug for CreateBranchProtectionOption
impl Debug for CreateBranchProtectionOption
Source§impl Default for CreateBranchProtectionOption
impl Default for CreateBranchProtectionOption
Source§fn default() -> CreateBranchProtectionOption
fn default() -> CreateBranchProtectionOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateBranchProtectionOption
impl<'de> Deserialize<'de> for CreateBranchProtectionOption
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 CreateBranchProtectionOption
impl PartialEq for CreateBranchProtectionOption
Source§fn eq(&self, other: &CreateBranchProtectionOption) -> bool
fn eq(&self, other: &CreateBranchProtectionOption) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateBranchProtectionOption
Auto Trait Implementations§
impl Freeze for CreateBranchProtectionOption
impl RefUnwindSafe for CreateBranchProtectionOption
impl Send for CreateBranchProtectionOption
impl Sync for CreateBranchProtectionOption
impl Unpin for CreateBranchProtectionOption
impl UnwindSafe for CreateBranchProtectionOption
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