pub struct BootJson {
pub generation: Generation,
pub extensions: Extensions,
}Expand description
The current bootspec schema.
Fields§
§generation: Generation§extensions: ExtensionsImplementations§
source§impl BootJson
impl BootJson
sourcepub fn synthesize_latest(
generation_path: &Path
) -> Result<BootJson, BootspecError>
pub fn synthesize_latest( generation_path: &Path ) -> Result<BootJson, BootspecError>
Synthesize a BootJson struct from the path to a generation using the latest
specification version defined in this crate (SCHEMA_VERSION).
See also BootJson::synthesize_version.
Warnings
Extensions will not be synthesized and will be an empty HashMap.
sourcepub fn synthesize_version(
generation_path: &Path,
version: u64
) -> Result<BootJson, BootspecError>
pub fn synthesize_version( generation_path: &Path, version: u64 ) -> Result<BootJson, BootspecError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for BootJson
impl<'de> Deserialize<'de> for BootJson
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<BootJson> for BootJson
impl PartialEq<BootJson> for BootJson
impl Eq for BootJson
impl StructuralEq for BootJson
impl StructuralPartialEq for BootJson
Auto Trait Implementations§
impl RefUnwindSafe for BootJson
impl Send for BootJson
impl Sync for BootJson
impl Unpin for BootJson
impl UnwindSafe for BootJson
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