pub enum ReleaseAnswer {
Stands {
mine: ReleaseLine,
newest: ReleaseLine,
verdict: ReleaseVerdict,
},
Unreleased {
newest: ReleaseLine,
},
Refused {
refusal: AxError,
},
}Expand description
Where this city stands against the release channel.
Exhaustive rather than a pair of optional fields: “you are running a release and here is where it stands”, “you built this yourself, so there is nothing to compare” and “the registry could not be read” are three different things for a person to do next, and only the first of them is a version number.
Variants§
Stands
This binary came out of a release, and here is where it stands.
Unreleased
This binary was built from a working tree, so it is none of the published releases. Reporting it as out of date would be answering about a binary the person is not running.
Fields
§
newest: ReleaseLineRefused
The check could not be made. Carries why, because “could not check” leaves a person believing they checked.
Trait Implementations§
Source§impl Clone for ReleaseAnswer
impl Clone for ReleaseAnswer
Source§impl Debug for ReleaseAnswer
impl Debug for ReleaseAnswer
Source§impl<'de> Deserialize<'de> for ReleaseAnswer
impl<'de> Deserialize<'de> for ReleaseAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReleaseAnswer
Source§impl PartialEq for ReleaseAnswer
impl PartialEq for ReleaseAnswer
Source§impl Serialize for ReleaseAnswer
impl Serialize for ReleaseAnswer
impl StructuralPartialEq for ReleaseAnswer
Auto Trait Implementations§
impl Freeze for ReleaseAnswer
impl RefUnwindSafe for ReleaseAnswer
impl Send for ReleaseAnswer
impl Sync for ReleaseAnswer
impl Unpin for ReleaseAnswer
impl UnsafeUnpin for ReleaseAnswer
impl UnwindSafe for ReleaseAnswer
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