pub enum PinSelector {
Series(SeriesName),
Pin {
project: ProjectName,
tag: TagName,
},
}Expand description
Either a named series or a single (project, tag) pin: the “where” a
check runs, addressed by --series or by --project and --tag.
Variants§
Implementations§
Source§impl PinSelector
impl PinSelector
pub fn series(name: impl Into<SeriesName>) -> Self
Sourcepub fn series_name(&self) -> Option<&SeriesName>
pub fn series_name(&self) -> Option<&SeriesName>
The series a Series selector names; None for a single pin.
pub fn pin(project: impl Into<ProjectName>, tag: impl Into<TagName>) -> Self
Trait Implementations§
Source§impl Clone for PinSelector
impl Clone for PinSelector
Source§impl Debug for PinSelector
impl Debug for PinSelector
impl Eq for PinSelector
Source§impl From<(ProjectName, TagName)> for PinSelector
impl From<(ProjectName, TagName)> for PinSelector
Source§fn from((project, tag): (ProjectName, TagName)) -> Self
fn from((project, tag): (ProjectName, TagName)) -> Self
Converts to this type from the input type.
Source§impl From<SeriesName> for PinSelector
impl From<SeriesName> for PinSelector
Source§fn from(s: SeriesName) -> Self
fn from(s: SeriesName) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PinSelector
impl PartialEq for PinSelector
impl StructuralPartialEq for PinSelector
Auto Trait Implementations§
impl Forget for PinSelector
impl Freeze for PinSelector
impl Move for PinSelector
impl RefUnwindSafe for PinSelector
impl Send for PinSelector
impl Sync for PinSelector
impl Unpin for PinSelector
impl UnsafeUnpin for PinSelector
impl UnwindSafe for PinSelector
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