pub struct Labels<L: 'static> {
pub mode: Mode,
pub labels: BTreeMap<String, L>,
}Expand description
Repository label policy.
L is the forge’s label type.
Fields§
§mode: ModeWhether undeclared labels are deleted.
labels: BTreeMap<String, L>The desired labels, keyed by name.
Trait Implementations§
impl<L: Eq + 'static> Eq for Labels<L>
impl<L: PartialEq + 'static> StructuralPartialEq for Labels<L>
Auto Trait Implementations§
impl<L> Freeze for Labels<L>
impl<L> RefUnwindSafe for Labels<L>
impl<L> Send for Labels<L>
impl<L> Sync for Labels<L>
impl<L> Unpin for Labels<L>
impl<L> UnsafeUnpin for Labels<L>
impl<L> UnwindSafe for Labels<L>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.