#[non_exhaustive]pub struct DeployPolicyResourceSelector {
pub delivery_pipeline: Option<DeliveryPipelineAttribute>,
pub target: Option<TargetAttribute>,
/* private fields */
}
Expand description
Contains information on the resources to select for a deploy policy. Attributes provided must all match the resource in order for policy restrictions to apply. For example, if delivery pipelines attributes given are an id “prod” and labels “foo: bar”, a delivery pipeline resource must match both that id and have that label in order to be subject to the policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.delivery_pipeline: Option<DeliveryPipelineAttribute>
Optional. Contains attributes about a delivery pipeline.
target: Option<TargetAttribute>
Optional. Contains attributes about a target.
Implementations§
Source§impl DeployPolicyResourceSelector
impl DeployPolicyResourceSelector
pub fn new() -> Self
Sourcepub fn set_delivery_pipeline<T>(self, v: T) -> Selfwhere
T: Into<DeliveryPipelineAttribute>,
pub fn set_delivery_pipeline<T>(self, v: T) -> Selfwhere
T: Into<DeliveryPipelineAttribute>,
Sets the value of delivery_pipeline.
Sourcepub fn set_or_clear_delivery_pipeline<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeliveryPipelineAttribute>,
pub fn set_or_clear_delivery_pipeline<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeliveryPipelineAttribute>,
Sets or clears the value of delivery_pipeline.
Sourcepub fn set_target<T>(self, v: T) -> Selfwhere
T: Into<TargetAttribute>,
pub fn set_target<T>(self, v: T) -> Selfwhere
T: Into<TargetAttribute>,
Sets the value of target.
Sourcepub fn set_or_clear_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetAttribute>,
pub fn set_or_clear_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetAttribute>,
Sets or clears the value of target.
Trait Implementations§
Source§impl Clone for DeployPolicyResourceSelector
impl Clone for DeployPolicyResourceSelector
Source§fn clone(&self) -> DeployPolicyResourceSelector
fn clone(&self) -> DeployPolicyResourceSelector
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 DeployPolicyResourceSelector
impl Debug for DeployPolicyResourceSelector
Source§impl Default for DeployPolicyResourceSelector
impl Default for DeployPolicyResourceSelector
Source§fn default() -> DeployPolicyResourceSelector
fn default() -> DeployPolicyResourceSelector
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeployPolicyResourceSelector
impl PartialEq for DeployPolicyResourceSelector
Source§fn eq(&self, other: &DeployPolicyResourceSelector) -> bool
fn eq(&self, other: &DeployPolicyResourceSelector) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DeployPolicyResourceSelector
Auto Trait Implementations§
impl Freeze for DeployPolicyResourceSelector
impl RefUnwindSafe for DeployPolicyResourceSelector
impl Send for DeployPolicyResourceSelector
impl Sync for DeployPolicyResourceSelector
impl Unpin for DeployPolicyResourceSelector
impl UnwindSafe for DeployPolicyResourceSelector
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