#[non_exhaustive]pub enum ReleaseType {
Unknown,
Released,
Development,
ReleasedWithPatches,
PreReleaseBeta,
Private,
Reserved(u16),
}Expand description
ProductVersion’s release field enumeration (§4.3).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
0 — Unknown version.
Released
1 — Released version.
Development
2 — Development version.
ReleasedWithPatches
3 — Released version with patches.
PreReleaseBeta
4 — Pre-release beta version.
Private
5 — Private version, not intended for general release.
Reserved(u16)
Any other value — not defined by §4.3.
Implementations§
Trait Implementations§
Source§impl Clone for ReleaseType
impl Clone for ReleaseType
Source§fn clone(&self) -> ReleaseType
fn clone(&self) -> ReleaseType
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 moreimpl Copy for ReleaseType
Source§impl Debug for ReleaseType
impl Debug for ReleaseType
Source§impl<'de> Deserialize<'de> for ReleaseType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ReleaseType
Available on crate feature
serde only.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
Source§impl Display for ReleaseType
impl Display for ReleaseType
impl Eq for ReleaseType
Source§impl Hash for ReleaseType
impl Hash for ReleaseType
Source§impl PartialEq for ReleaseType
impl PartialEq for ReleaseType
Source§impl Serialize for ReleaseType
Available on crate feature serde only.
impl Serialize for ReleaseType
Available on crate feature
serde only.impl StructuralPartialEq for ReleaseType
Auto Trait Implementations§
impl Freeze for ReleaseType
impl RefUnwindSafe for ReleaseType
impl Send for ReleaseType
impl Sync for ReleaseType
impl Unpin for ReleaseType
impl UnsafeUnpin for ReleaseType
impl UnwindSafe for ReleaseType
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