pub struct BranchProtection {Show 16 fields
pub url: Option<String>,
pub enabled: Option<bool>,
pub required_status_checks: Option<Box<ProtectedBranchRequiredStatusCheck>>,
pub enforce_admins: Option<Box<ProtectedBranchAdminEnforced>>,
pub required_pull_request_reviews: Option<Box<ProtectedBranchPullRequestReview>>,
pub restrictions: Option<Box<BranchRestrictionPolicy>>,
pub required_linear_history: Option<Box<BranchProtectionRequiredLinearHistory>>,
pub allow_force_pushes: Option<Box<BranchProtectionRequiredLinearHistory>>,
pub allow_deletions: Option<Box<BranchProtectionRequiredLinearHistory>>,
pub block_creations: Option<Box<BranchProtectionRequiredLinearHistory>>,
pub required_conversation_resolution: Option<Box<BranchProtectionRequiredLinearHistory>>,
pub name: Option<String>,
pub protection_url: Option<String>,
pub required_signatures: Option<Box<BranchProtectionRequiredSignatures>>,
pub lock_branch: Option<Box<BranchProtectionLockBranch>>,
pub allow_fork_syncing: Option<Box<BranchProtectionAllowForkSyncing>>,
}
Expand description
BranchProtection : Branch Protection
Fields§
§url: Option<String>
§enabled: Option<bool>
§required_status_checks: Option<Box<ProtectedBranchRequiredStatusCheck>>
§enforce_admins: Option<Box<ProtectedBranchAdminEnforced>>
§required_pull_request_reviews: Option<Box<ProtectedBranchPullRequestReview>>
§restrictions: Option<Box<BranchRestrictionPolicy>>
§required_linear_history: Option<Box<BranchProtectionRequiredLinearHistory>>
§allow_force_pushes: Option<Box<BranchProtectionRequiredLinearHistory>>
§allow_deletions: Option<Box<BranchProtectionRequiredLinearHistory>>
§block_creations: Option<Box<BranchProtectionRequiredLinearHistory>>
§required_conversation_resolution: Option<Box<BranchProtectionRequiredLinearHistory>>
§name: Option<String>
§protection_url: Option<String>
§required_signatures: Option<Box<BranchProtectionRequiredSignatures>>
§lock_branch: Option<Box<BranchProtectionLockBranch>>
§allow_fork_syncing: Option<Box<BranchProtectionAllowForkSyncing>>
Implementations§
Source§impl BranchProtection
impl BranchProtection
Sourcepub fn new() -> BranchProtection
pub fn new() -> BranchProtection
Branch Protection
Trait Implementations§
Source§impl Clone for BranchProtection
impl Clone for BranchProtection
Source§fn clone(&self) -> BranchProtection
fn clone(&self) -> BranchProtection
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 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