#[non_exhaustive]pub enum ProjectBuildLabels {
Map(Vec<ProjectLabelEntry>),
List(Vec<ProjectValue<String>>),
}Expand description
Effective build labels retaining their mapping or list syntax.
Mapping entries use the same key/value representation as service labels. List entries remain raw strings so order, duplicates, and bare-label spelling are not normalized away.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Map(Vec<ProjectLabelEntry>)
Mapping syntax with keyed label entries.
List(Vec<ProjectValue<String>>)
List syntax with raw ordered label strings.
Implementations§
Source§impl ProjectBuildLabels
impl ProjectBuildLabels
Sourcepub fn as_map(&self) -> Option<&[ProjectLabelEntry]>
pub fn as_map(&self) -> Option<&[ProjectLabelEntry]>
Returns mapping entries when the effective build labels use mapping syntax.
Sourcepub fn as_list(&self) -> Option<&[ProjectValue<String>]>
pub fn as_list(&self) -> Option<&[ProjectValue<String>]>
Returns raw ordered entries when the effective build labels use list syntax.
Trait Implementations§
Source§impl Clone for ProjectBuildLabels
impl Clone for ProjectBuildLabels
Source§fn clone(&self) -> ProjectBuildLabels
fn clone(&self) -> ProjectBuildLabels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectBuildLabels
impl Debug for ProjectBuildLabels
impl Eq for ProjectBuildLabels
Source§impl PartialEq for ProjectBuildLabels
impl PartialEq for ProjectBuildLabels
impl StructuralPartialEq for ProjectBuildLabels
Auto Trait Implementations§
impl Freeze for ProjectBuildLabels
impl RefUnwindSafe for ProjectBuildLabels
impl Send for ProjectBuildLabels
impl Sync for ProjectBuildLabels
impl Unpin for ProjectBuildLabels
impl UnsafeUnpin for ProjectBuildLabels
impl UnwindSafe for ProjectBuildLabels
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