pub struct BranchProtection {Show 26 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 created_at: 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>,
pub updated_at: Option<String>,
}
Expand description
BranchProtection : BranchProtection represents a branch protection for a repository
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
created_at: Option<String>
§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>
§updated_at: Option<String>
Implementations§
Source§impl BranchProtection
impl BranchProtection
Sourcepub fn new() -> BranchProtection
pub fn new() -> BranchProtection
BranchProtection represents a branch protection for a repository
Trait Implementations§
Source§impl Clone for BranchProtection
impl Clone for BranchProtection
Source§fn clone(&self) -> BranchProtection
fn clone(&self) -> BranchProtection
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 BranchProtection
impl Debug for BranchProtection
Source§impl Default for BranchProtection
impl Default for BranchProtection
Source§fn default() -> BranchProtection
fn default() -> BranchProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchProtection
impl<'de> Deserialize<'de> for BranchProtection
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 BranchProtection
impl PartialEq for BranchProtection
Source§impl Serialize for BranchProtection
impl Serialize for BranchProtection
impl StructuralPartialEq for BranchProtection
Auto Trait Implementations§
impl Freeze for BranchProtection
impl RefUnwindSafe for BranchProtection
impl Send for BranchProtection
impl Sync for BranchProtection
impl Unpin for BranchProtection
impl UnwindSafe for BranchProtection
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