pub struct DeploymentProtectionRule {
pub id: i32,
pub node_id: String,
pub enabled: bool,
pub app: Box<CustomDeploymentRuleApp>,
}
Expand description
DeploymentProtectionRule : Deployment protection rule
Fields§
§id: i32
The unique identifier for the deployment protection rule.
node_id: String
The node ID for the deployment protection rule.
enabled: bool
Whether the deployment protection rule is enabled for the environment.
app: Box<CustomDeploymentRuleApp>
Implementations§
Source§impl DeploymentProtectionRule
impl DeploymentProtectionRule
Sourcepub fn new(
id: i32,
node_id: String,
enabled: bool,
app: CustomDeploymentRuleApp,
) -> DeploymentProtectionRule
pub fn new( id: i32, node_id: String, enabled: bool, app: CustomDeploymentRuleApp, ) -> DeploymentProtectionRule
Deployment protection rule
Trait Implementations§
Source§impl Clone for DeploymentProtectionRule
impl Clone for DeploymentProtectionRule
Source§fn clone(&self) -> DeploymentProtectionRule
fn clone(&self) -> DeploymentProtectionRule
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 DeploymentProtectionRule
impl Debug for DeploymentProtectionRule
Source§impl Default for DeploymentProtectionRule
impl Default for DeploymentProtectionRule
Source§fn default() -> DeploymentProtectionRule
fn default() -> DeploymentProtectionRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeploymentProtectionRule
impl<'de> Deserialize<'de> for DeploymentProtectionRule
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 DeploymentProtectionRule
impl PartialEq for DeploymentProtectionRule
Source§impl Serialize for DeploymentProtectionRule
impl Serialize for DeploymentProtectionRule
impl StructuralPartialEq for DeploymentProtectionRule
Auto Trait Implementations§
impl Freeze for DeploymentProtectionRule
impl RefUnwindSafe for DeploymentProtectionRule
impl Send for DeploymentProtectionRule
impl Sync for DeploymentProtectionRule
impl Unpin for DeploymentProtectionRule
impl UnwindSafe for DeploymentProtectionRule
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