pub struct DeploymentBranchPolicySettings {
pub protected_branches: bool,
pub custom_branch_policies: bool,
}
Expand description
DeploymentBranchPolicySettings : The type of deployment branch policy for this environment. To allow all branches to deploy, set to null
.
Fields§
§protected_branches: bool
Whether only branches with branch protection rules can deploy to this environment. If protected_branches
is true
, custom_branch_policies
must be false
; if protected_branches
is false
, custom_branch_policies
must be true
.
custom_branch_policies: bool
Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies
is true
, protected_branches
must be false
; if custom_branch_policies
is false
, protected_branches
must be true
.
Implementations§
Source§impl DeploymentBranchPolicySettings
impl DeploymentBranchPolicySettings
Sourcepub fn new(
protected_branches: bool,
custom_branch_policies: bool,
) -> DeploymentBranchPolicySettings
pub fn new( protected_branches: bool, custom_branch_policies: bool, ) -> DeploymentBranchPolicySettings
The type of deployment branch policy for this environment. To allow all branches to deploy, set to null
.
Trait Implementations§
Source§impl Clone for DeploymentBranchPolicySettings
impl Clone for DeploymentBranchPolicySettings
Source§fn clone(&self) -> DeploymentBranchPolicySettings
fn clone(&self) -> DeploymentBranchPolicySettings
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 Default for DeploymentBranchPolicySettings
impl Default for DeploymentBranchPolicySettings
Source§fn default() -> DeploymentBranchPolicySettings
fn default() -> DeploymentBranchPolicySettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeploymentBranchPolicySettings
impl<'de> Deserialize<'de> for DeploymentBranchPolicySettings
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 DeploymentBranchPolicySettings
impl PartialEq for DeploymentBranchPolicySettings
Source§fn eq(&self, other: &DeploymentBranchPolicySettings) -> bool
fn eq(&self, other: &DeploymentBranchPolicySettings) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DeploymentBranchPolicySettings
Auto Trait Implementations§
impl Freeze for DeploymentBranchPolicySettings
impl RefUnwindSafe for DeploymentBranchPolicySettings
impl Send for DeploymentBranchPolicySettings
impl Sync for DeploymentBranchPolicySettings
impl Unpin for DeploymentBranchPolicySettings
impl UnwindSafe for DeploymentBranchPolicySettings
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