pub struct Release { /* private fields */ }Expand description
One published release of this project, in the form both spellings decode to.
Field order is the comparison order, and the comparison order is semver’s: version first, then the date inside the pre-release field.
Implementations§
Source§impl Release
impl Release
Sourcepub fn from_tag(tag: &str, expected_version: &str) -> Result<Release, AxError>
pub fn from_tag(tag: &str, expected_version: &str) -> Result<Release, AxError>
The release a git tag names.
expected_version is the version the caller was built from -
workspace.package.version for xtask, CARGO_PKG_VERSION for
the binary. Both callers hold the same number, and a tag that
disagrees with it is refused here rather than producing a release
whose name and whose contents state different versions.
§Errors
When the tag is not shaped like a release of this project, when
its version disagrees with expected_version, or when its date
is not a real day.
Sourcepub fn npm_version(&self) -> String
pub fn npm_version(&self) -> String
0.0.5-pre.260912, the version npm carries.
Trait Implementations§
impl Copy for Release
impl Eq for Release
Source§impl Ord for Release
impl Ord for Release
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Release
impl PartialOrd for Release
impl StructuralPartialEq for Release
Auto Trait Implementations§
impl Freeze for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
impl UnwindSafe for Release
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