#[non_exhaustive]#[repr(u32)]pub enum ComponentVersion {
V0 = 0,
V1 = 1,
}
Expand description
The umbrella version of the component.
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.
Trait Implementations§
Source§impl Clone for ComponentVersion
impl Clone for ComponentVersion
Source§fn clone(&self) -> ComponentVersion
fn clone(&self) -> ComponentVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 ComponentVersion
impl Debug for ComponentVersion
Source§impl Default for ComponentVersion
impl Default for ComponentVersion
Source§impl<'de> Deserialize<'de> for ComponentVersion
impl<'de> Deserialize<'de> for ComponentVersion
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 From<ComponentVersion> for u32
impl From<ComponentVersion> for u32
Source§fn from(v: ComponentVersion) -> Self
fn from(v: ComponentVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComponentVersion
impl PartialEq for ComponentVersion
Source§impl Serialize for ComponentVersion
impl Serialize for ComponentVersion
impl Copy for ComponentVersion
impl Eq for ComponentVersion
impl StructuralPartialEq for ComponentVersion
Auto Trait Implementations§
impl Freeze for ComponentVersion
impl RefUnwindSafe for ComponentVersion
impl Send for ComponentVersion
impl Sync for ComponentVersion
impl Unpin for ComponentVersion
impl UnwindSafe for ComponentVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key
and return true
if they are equal.