pub struct LastRelease {
pub version: String,
pub reference: String,
pub read_at: String,
pub recorded: bool,
}Expand description
The release a version is measured from, named without reading its surface.
use majordomus_cli::release::compat::LastRelease;
let tagged = LastRelease {
version: "0.5.0".into(),
reference: "v0.5.0".into(),
read_at: "v0.5.0".into(),
recorded: false,
};
// a release known only from its tag is read at the tag itself
assert_eq!(tagged.read_at, tagged.reference);Fields§
§version: String0.5.0.
reference: Stringv0.5.0: the release, as a reader recognises it.
read_at: StringThe ref its tree is read from: the commit its record names, else its tag.
recorded: boolWhether the layer holds a record for it, rather than only a tag.
Trait Implementations§
Source§impl Clone for LastRelease
impl Clone for LastRelease
Source§fn clone(&self) -> LastRelease
fn clone(&self) -> LastRelease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LastRelease
impl Debug for LastRelease
impl Eq for LastRelease
Source§impl PartialEq for LastRelease
impl PartialEq for LastRelease
Source§fn eq(&self, other: &LastRelease) -> bool
fn eq(&self, other: &LastRelease) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LastRelease
Auto Trait Implementations§
impl Freeze for LastRelease
impl RefUnwindSafe for LastRelease
impl Send for LastRelease
impl Sync for LastRelease
impl Unpin for LastRelease
impl UnsafeUnpin for LastRelease
impl UnwindSafe for LastRelease
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.