Struct BundleInfo
#[non_exhaustive]pub struct BundleInfo {
pub manifest_hash: Option<String>,
pub update: Option<UpdateInfo>,
pub bundle: Option<BundleSection>,
pub hooks: Option<HooksInfo>,
pub handler: Option<HandlerInfo>,
pub images: Option<Vec<ImageInfo>>,
pub meta: Option<BTreeMap<String, BTreeMap<String, String>>>,
}Expand description
The manifest of a bundle, as returned by InspectBundle.
The layout matches rauc info --output-format=json-2. RAUC leaves out
keys that have no value. Keys that these structs don’t name are dropped.
RAUC wraps the sections in two variants. The crate reads both layers.
Upstream documentation: https://rauc.readthedocs.io/en/latest/reference.html#inspectbundle-method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.manifest_hash: Option<String>The SHA-256 hash over the manifest.
Added in RAUC 1.10.
update: Option<UpdateInfo>The [update] section.
bundle: Option<BundleSection>The [bundle] section.
Added in RAUC 1.10.
hooks: Option<HooksInfo>The [hooks] section.
Added in RAUC 1.10.
handler: Option<HandlerInfo>The [handler] section.
Added in RAUC 1.10.
images: Option<Vec<ImageInfo>>The [image.*] sections.
Added in RAUC 1.10.
meta: Option<BTreeMap<String, BTreeMap<String, String>>>The [meta.*] sections as groups of key-value pairs.
The outer key is the label of the section, so [meta.foo] has the
outer key foo. The inner key is a key inside that section.
Added in RAUC 1.10.
Trait Implementations§
§impl Clone for BundleInfo
impl Clone for BundleInfo
§fn clone(&self) -> BundleInfo
fn clone(&self) -> BundleInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more