pub struct InstallMarker {
pub channel: Channel,
pub prefix: PathBuf,
pub workspace: Option<PathBuf>,
pub commit: Option<String>,
pub installed_at: String,
pub build: Option<String>,
pub version: Option<String>,
}Expand description
<state>/install.json: what install.sh recorded.
Fields§
§channel: Channel§prefix: PathBufWhere the binaries live: <prefix>/bin/eclipse.
workspace: Option<PathBuf>The checkout that was built. Recorded rather than derived from prefix, because the
two have nothing to do with each other: --prefix /usr/local says where the binaries
went, not where the sources are. None for a release install, which has no checkout.
commit: Option<String>git rev-parse HEAD of the checkout at install time; None for an install that had no
git checkout, such as an unpacked tarball.
installed_at: StringRFC 3339, UTC.
build: Option<String>release or debug: which cargo profile install.sh built, so an upgrade installs
the same kind rather than quietly switching.
version: Option<String>The version the binaries report, without the v. Written for both channels: it is what
a release install compares against a newer tag, and what a refusal can name when the
marker is older than this field.
Implementations§
Source§impl InstallMarker
impl InstallMarker
Trait Implementations§
Source§impl Clone for InstallMarker
impl Clone for InstallMarker
Source§impl Debug for InstallMarker
impl Debug for InstallMarker
Source§impl<'de> Deserialize<'de> for InstallMarker
impl<'de> Deserialize<'de> for InstallMarker
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>,
impl Eq for InstallMarker
Source§impl PartialEq for InstallMarker
impl PartialEq for InstallMarker
Source§impl Serialize for InstallMarker
impl Serialize for InstallMarker
impl StructuralPartialEq for InstallMarker
Auto Trait Implementations§
impl Forget for InstallMarker
impl Freeze for InstallMarker
impl Move for InstallMarker
impl RefUnwindSafe for InstallMarker
impl Send for InstallMarkerwhere
RawVecInner: Send,
impl Sync for InstallMarkerwhere
RawVecInner: Sync,
impl Unpin for InstallMarker
impl UnsafeUnpin for InstallMarker
impl UnwindSafe for InstallMarkerwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.