#[non_exhaustive]pub enum PackageVersion {
Semver(Version),
Tag(TagName),
}
Expand description
A type representing a package version in a PackageId.
In a PackageId string like fluvio/fluvio:1.2.3
, this
is the 1.2.3
.
A PackageVersion
may be either a direct semver, or it may be
the name of a tag which can later be resolved to a semver by
looking up the tag in the package registry.
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.
Trait Implementations§
Source§impl Clone for PackageVersion
impl Clone for PackageVersion
Source§fn clone(&self) -> PackageVersion
fn clone(&self) -> PackageVersion
Returns a copy 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 PackageVersion
impl Debug for PackageVersion
Source§impl Display for PackageVersion
impl Display for PackageVersion
Source§impl From<TagName> for PackageVersion
impl From<TagName> for PackageVersion
Source§impl From<Version> for PackageVersion
impl From<Version> for PackageVersion
Source§impl FromStr for PackageVersion
impl FromStr for PackageVersion
Source§impl PartialEq for PackageVersion
impl PartialEq for PackageVersion
impl Eq for PackageVersion
impl StructuralPartialEq for PackageVersion
Auto Trait Implementations§
impl Freeze for PackageVersion
impl RefUnwindSafe for PackageVersion
impl Send for PackageVersion
impl Sync for PackageVersion
impl Unpin for PackageVersion
impl UnwindSafe for PackageVersion
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