pub struct UpdateConfig {
pub check: UpdateCheck,
pub track: Track,
pub remote: Option<String>,
pub releases: Option<String>,
}Expand description
[update]: the notice that says a newer commit exists. It is the only request this tool
makes that is neither a model call nor something the user asked for, so it has a switch.
Fields§
§check: UpdateCheck§track: TrackWhich branch a source install follows: release is main, develop is the branch work
lands on. The ref comes from here rather than from the checkout’s upstream, so a checkout
parked on a feature branch is refused instead of quietly becoming an update channel
nobody chose. A release install has no branch to follow at all: it compares tags, and
eclipse upgrade refuses the develop track there rather than pretending.
remote: Option<String>Where the latest commit is asked for, instead of the public GitHub repository: an
http(s) URL that answers with a commit id, either as the whole body or as a JSON
object with a sha field. Because the user wrote it, it may be a host on a private
network, which the fetch tool’s public-hosts rule would refuse.
releases: Option<String>Where the newest release is asked for, instead of the public GitHub repository: an
http(s) URL answering with the same JSON shape (tag_name, assets[].name and
assets[].browser_download_url). eclipse upgrade on a release install reads its
download URLs from this answer, so a mirror is a mirror. May be a host on your network.
Trait Implementations§
Source§impl Clone for UpdateConfig
impl Clone for UpdateConfig
Source§impl Debug for UpdateConfig
impl Debug for UpdateConfig
Source§impl Default for UpdateConfig
impl Default for UpdateConfig
Source§impl<'de> Deserialize<'de> for UpdateConfigwhere
UpdateConfig: Default,
impl<'de> Deserialize<'de> for UpdateConfigwhere
UpdateConfig: Default,
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 UpdateConfig
Source§impl PartialEq for UpdateConfig
impl PartialEq for UpdateConfig
Source§impl Serialize for UpdateConfig
impl Serialize for UpdateConfig
impl StructuralPartialEq for UpdateConfig
Auto Trait Implementations§
impl Forget for UpdateConfig
impl Freeze for UpdateConfig
impl Move for UpdateConfig
impl RefUnwindSafe for UpdateConfig
impl Send for UpdateConfigwhere
RawVecInner: Send,
impl Sync for UpdateConfigwhere
RawVecInner: Sync,
impl Unpin for UpdateConfig
impl UnsafeUnpin for UpdateConfig
impl UnwindSafe for UpdateConfigwhere
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.