pub enum ReleaseFilter {
Unrestricted,
SkipPrereleases,
Specific(String),
}Expand description
Controls which tags/releases are considered when finding releases.
Variants§
Unrestricted
All tags are considered (default behavior).
SkipPrereleases
Filter out pre-release versions (nightlies, RCs, etc.).
Specific(String)
Limit to one specific tag by name.
Implementations§
Source§impl ReleaseFilter
impl ReleaseFilter
Filter a list of TagInfo candidates.
Returns a new vector containing only tags that pass the filter.
Sourcepub fn specific_tag(&self) -> Option<&str>
pub fn specific_tag(&self) -> Option<&str>
Check if this is a specific release filter and return the tag name if so.
Sourcepub const fn skips_prereleases(&self) -> bool
pub const fn skips_prereleases(&self) -> bool
Returns true if pre-releases should be skipped.
Trait Implementations§
Source§impl Clone for ReleaseFilter
impl Clone for ReleaseFilter
Source§fn clone(&self) -> ReleaseFilter
fn clone(&self) -> ReleaseFilter
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 ReleaseFilter
impl Debug for ReleaseFilter
Source§impl Default for ReleaseFilter
impl Default for ReleaseFilter
Source§fn default() -> ReleaseFilter
fn default() -> ReleaseFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReleaseFilter
impl RefUnwindSafe for ReleaseFilter
impl Send for ReleaseFilter
impl Sync for ReleaseFilter
impl Unpin for ReleaseFilter
impl UnsafeUnpin for ReleaseFilter
impl UnwindSafe for ReleaseFilter
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more