Struct roctogen::models::PutReposUpdateBranchProtection [−][src]
pub struct PutReposUpdateBranchProtection { pub required_status_checks: Option<ReposownerrepobranchesbranchprotectionRequiredStatusChecks>, pub enforce_admins: Option<bool>, pub required_pull_request_reviews: Option<ReposownerrepobranchesbranchprotectionRequiredPullRequestReviews>, pub restrictions: Option<ReposownerrepobranchesbranchprotectionRestrictions>, pub required_linear_history: Option<bool>, pub allow_force_pushes: Option<bool>, pub allow_deletions: Option<bool>, }
Fields
required_status_checks: Option<ReposownerrepobranchesbranchprotectionRequiredStatusChecks>
enforce_admins: Option<bool>
Enforce all configured restrictions for administrators. Set to true
to enforce required status checks for repository administrators. Set to null
to disable.
required_pull_request_reviews: Option<ReposownerrepobranchesbranchprotectionRequiredPullRequestReviews>
restrictions: Option<ReposownerrepobranchesbranchprotectionRestrictions>
required_linear_history: Option<bool>
Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true
to enforce a linear commit history. Set to false
to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false
. For more information, see "Requiring a linear commit history" in the GitHub Help documentation.
allow_force_pushes: Option<bool>
Permits force pushes to the protected branch by anyone with write access to the repository. Set to true
to allow force pushes. Set to false
or null
to block force pushes. Default: false
. For more information, see "Enabling force pushes to a protected branch" in the GitHub Help documentation."
allow_deletions: Option<bool>
Allows deletion of the protected branch by anyone with write access to the repository. Set to false
to prevent deletion of the protected branch. Default: false
. For more information, see "Enabling force pushes to a protected branch" in the GitHub Help documentation.
Trait Implementations
impl Clone for PutReposUpdateBranchProtection
[src]
impl Clone for PutReposUpdateBranchProtection
[src]fn clone(&self) -> PutReposUpdateBranchProtection
[src]
fn clone(&self) -> PutReposUpdateBranchProtection
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PutReposUpdateBranchProtection
[src]
impl Debug for PutReposUpdateBranchProtection
[src]impl Default for PutReposUpdateBranchProtection
[src]
impl Default for PutReposUpdateBranchProtection
[src]fn default() -> PutReposUpdateBranchProtection
[src]
fn default() -> PutReposUpdateBranchProtection
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for PutReposUpdateBranchProtection
[src]
impl<'de> Deserialize<'de> for PutReposUpdateBranchProtection
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<PutReposUpdateBranchProtection> for PutReposUpdateBranchProtection
[src]
impl PartialEq<PutReposUpdateBranchProtection> for PutReposUpdateBranchProtection
[src]fn eq(&self, other: &PutReposUpdateBranchProtection) -> bool
[src]
fn eq(&self, other: &PutReposUpdateBranchProtection) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PutReposUpdateBranchProtection) -> bool
[src]
fn ne(&self, other: &PutReposUpdateBranchProtection) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for PutReposUpdateBranchProtection
[src]
Auto Trait Implementations
impl RefUnwindSafe for PutReposUpdateBranchProtection
impl Send for PutReposUpdateBranchProtection
impl Sync for PutReposUpdateBranchProtection
impl Unpin for PutReposUpdateBranchProtection
impl UnwindSafe for PutReposUpdateBranchProtection
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,