pub struct BootJson {
pub generation: Generation,
pub extensions: Extensions,
}
Expand description
The current bootspec schema.
Fields§
§generation: Generation
§extensions: Extensions
Implementations§
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
impl Eq for BootJson
impl StructuralPartialEq for BootJson
Auto Trait Implementations§
impl Freeze for BootJson
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