Enum bootspec::generation::Generation
source · #[non_exhaustive]pub enum Generation {
V1(GenerationV1),
}Expand description
An enum of all available bootspec versions.
This enum is nonexhaustive, because there may be future versions added at any point, and tools should explicitly handle them (e.g. by noting they’re currently unsupported).
Warnings
If you attempt to deserialize using this struct, you will not get any information about
user-provided extensions. For that, you must deserialize with crate::BootJson.
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.
V1(GenerationV1)
Implementations§
Trait Implementations§
source§impl Clone for Generation
impl Clone for Generation
source§fn clone(&self) -> Generation
fn clone(&self) -> Generation
Returns a copy 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 Generation
impl Debug for Generation
source§impl<'de> Deserialize<'de> for Generation
impl<'de> Deserialize<'de> for Generation
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 PartialEq<Generation> for Generation
impl PartialEq<Generation> for Generation
source§fn eq(&self, other: &Generation) -> bool
fn eq(&self, other: &Generation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Generation
impl Serialize for Generation
impl Eq for Generation
impl StructuralEq for Generation
impl StructuralPartialEq for Generation
Auto Trait Implementations§
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnwindSafe for Generation
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