pub struct WebBranchProtection {Show 24 fields
pub allow_master_force_pushes: Option<bool>,
pub allow_force_pushes: Option<bool>,
pub allow_master_creation: Option<bool>,
pub allow_master_deletions: Option<bool>,
pub allow_master_manual_merge: Option<bool>,
pub allow_master_pushes: Option<bool>,
pub required_approved_review_count: Option<i64>,
pub allow_master_merge_without_status_checks: Option<bool>,
pub allow_pushes: Option<bool>,
pub allow_master_merge_without_review: Option<bool>,
pub required_commit_signatures: Option<bool>,
pub required_approved_review_ratio: Option<i64>,
pub allow_deletions: Option<bool>,
pub required_linear_history: Option<bool>,
pub required_master_approve: Option<bool>,
pub required_must_push_via_pull_request: Option<bool>,
pub allow_assignee_manual_merge: Option<bool>,
pub allow_creation: Option<bool>,
pub id: Option<String>,
pub match_count: Option<i64>,
pub required_must_auto_merge: Option<bool>,
pub required_pull_request_reviews: Option<bool>,
pub rule: Option<String>,
pub required_status_checks: Option<bool>,
}Expand description
WebBranchProtection 模型
Fields§
§allow_master_force_pushes: Option<bool>§allow_force_pushes: Option<bool>§allow_master_creation: Option<bool>§allow_master_deletions: Option<bool>§allow_master_manual_merge: Option<bool>§allow_master_pushes: Option<bool>§required_approved_review_count: Option<i64>§allow_master_merge_without_status_checks: Option<bool>§allow_pushes: Option<bool>§allow_master_merge_without_review: Option<bool>§required_commit_signatures: Option<bool>§required_approved_review_ratio: Option<i64>§allow_deletions: Option<bool>§required_linear_history: Option<bool>§required_master_approve: Option<bool>§required_must_push_via_pull_request: Option<bool>§allow_assignee_manual_merge: Option<bool>§allow_creation: Option<bool>§id: Option<String>§match_count: Option<i64>§required_must_auto_merge: Option<bool>§required_pull_request_reviews: Option<bool>§rule: Option<String>§required_status_checks: Option<bool>Trait Implementations§
Source§impl Clone for WebBranchProtection
impl Clone for WebBranchProtection
Source§fn clone(&self) -> WebBranchProtection
fn clone(&self) -> WebBranchProtection
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 Debug for WebBranchProtection
impl Debug for WebBranchProtection
Source§impl<'de> Deserialize<'de> for WebBranchProtection
impl<'de> Deserialize<'de> for WebBranchProtection
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
Auto Trait Implementations§
impl Freeze for WebBranchProtection
impl RefUnwindSafe for WebBranchProtection
impl Send for WebBranchProtection
impl Sync for WebBranchProtection
impl Unpin for WebBranchProtection
impl UnwindSafe for WebBranchProtection
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