#[non_exhaustive]pub struct TargetAttribute {
pub id: String,
pub labels: HashMap<String, String>,
/* private fields */
}
Expand description
Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.
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.id: String
Optional. ID of the Target
. The value of this field could be one of the
following:
- The last segment of a target name
- “*”, all targets in a location
labels: HashMap<String, String>
Target labels.
Implementations§
Trait Implementations§
Source§impl Clone for TargetAttribute
impl Clone for TargetAttribute
Source§fn clone(&self) -> TargetAttribute
fn clone(&self) -> TargetAttribute
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 TargetAttribute
impl Debug for TargetAttribute
Source§impl Default for TargetAttribute
impl Default for TargetAttribute
Source§fn default() -> TargetAttribute
fn default() -> TargetAttribute
Returns the “default value” for a type. Read more
Source§impl Message for TargetAttribute
impl Message for TargetAttribute
Source§impl PartialEq for TargetAttribute
impl PartialEq for TargetAttribute
impl StructuralPartialEq for TargetAttribute
Auto Trait Implementations§
impl Freeze for TargetAttribute
impl RefUnwindSafe for TargetAttribute
impl Send for TargetAttribute
impl Sync for TargetAttribute
impl Unpin for TargetAttribute
impl UnwindSafe for TargetAttribute
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