pub struct ImagePackagesManifestBuilder { /* private fields */ }
Expand description
A builder of ImagePackagesManifest
.
Implementations§
Source§impl ImagePackagesManifestBuilder
impl ImagePackagesManifestBuilder
Sourcepub fn fuchsia_package(
&mut self,
zbi: ImageMetadata,
vbmeta: Option<ImageMetadata>,
) -> &mut Self
pub fn fuchsia_package( &mut self, zbi: ImageMetadata, vbmeta: Option<ImageMetadata>, ) -> &mut Self
Configures the “fuchsia” images package to use the given zbi metadata, and optional vbmeta metadata.
Sourcepub fn recovery_package(
&mut self,
zbi: ImageMetadata,
vbmeta: Option<ImageMetadata>,
) -> &mut Self
pub fn recovery_package( &mut self, zbi: ImageMetadata, vbmeta: Option<ImageMetadata>, ) -> &mut Self
Configures the “recovery” images package to use the given zbi metadata, and optional vbmeta metadata.
Sourcepub fn firmware_package(
&mut self,
firmware: BTreeMap<String, ImageMetadata>,
) -> &mut Self
pub fn firmware_package( &mut self, firmware: BTreeMap<String, ImageMetadata>, ) -> &mut Self
Configures the “firmware” images package from a BTreeMap of ImageMetadata
Sourcepub fn build(self) -> VersionedImagePackagesManifest
pub fn build(self) -> VersionedImagePackagesManifest
Returns the constructed manifest.
Trait Implementations§
Source§impl Clone for ImagePackagesManifestBuilder
impl Clone for ImagePackagesManifestBuilder
Source§fn clone(&self) -> ImagePackagesManifestBuilder
fn clone(&self) -> ImagePackagesManifestBuilder
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 moreAuto Trait Implementations§
impl Freeze for ImagePackagesManifestBuilder
impl RefUnwindSafe for ImagePackagesManifestBuilder
impl Send for ImagePackagesManifestBuilder
impl Sync for ImagePackagesManifestBuilder
impl Unpin for ImagePackagesManifestBuilder
impl UnwindSafe for ImagePackagesManifestBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)