pub enum Format {
Epoch1,
Epoch2,
Epoch3,
Future,
}Expand description
More coarse-grained version info, indicating periods when significant changes were made
Variants§
Epoch1
THE BEFORE TIMES – Unsupported
Epoch2
First stable versions; during this epoch artifact names/ids contained their version numbers.
Epoch3
Same as Epoch2, but now artifact names/ids don’t include the version number, making /latest/ a stable path/url you can perma-link. This only affects download URLs.
Future
The version is newer than this version of cargo-dist-schema, so we don’t know. Most likely it’s compatible/readable, but maybe a breaking change was made?
Implementations§
Source§impl Format
impl Format
Sourcepub fn unsupported(&self) -> bool
pub fn unsupported(&self) -> bool
Whether this format is too old to be supported
Sourcepub fn artifact_names_contain_versions(&self) -> bool
pub fn artifact_names_contain_versions(&self) -> bool
Whether this format has version numbers in artifact names
Trait Implementations§
Source§impl Ord for Format
impl Ord for Format
Source§impl PartialOrd for Format
impl PartialOrd for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)