pub enum ReleaseQuery {
Mirror {
base_url: String,
version: String,
},
GitHubLatest {
url: &'static str,
},
GitHubReleaseList {
url: &'static str,
},
}Expand description
Describes where to fetch release metadata from.
Variants§
Mirror
Use a custom mirror base URL and a pinned version.
GitHubLatest
Query the GitHub single-latest-release endpoint.
GitHubReleaseList
Query the GitHub release-list endpoint (used for beta discovery).
Trait Implementations§
Source§impl Clone for ReleaseQuery
impl Clone for ReleaseQuery
Source§fn clone(&self) -> ReleaseQuery
fn clone(&self) -> ReleaseQuery
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 ReleaseQuery
impl Debug for ReleaseQuery
impl Eq for ReleaseQuery
Source§impl PartialEq for ReleaseQuery
impl PartialEq for ReleaseQuery
Source§fn eq(&self, other: &ReleaseQuery) -> bool
fn eq(&self, other: &ReleaseQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReleaseQuery
Auto Trait Implementations§
impl Freeze for ReleaseQuery
impl RefUnwindSafe for ReleaseQuery
impl Send for ReleaseQuery
impl Sync for ReleaseQuery
impl Unpin for ReleaseQuery
impl UnsafeUnpin for ReleaseQuery
impl UnwindSafe for ReleaseQuery
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