pub struct OtaManifest {
pub product_bundle_version: String,
pub board: String,
pub epoch: u64,
pub mode: i32,
pub blob_base_url: String,
pub images: Vec<Image>,
pub blobs: Vec<Blob>,
}Expand description
The root message for an Over-The-Air (OTA) update manifest.
Fields§
§product_bundle_version: StringThe version of the product bundle. This field is for informational purposes only and does not change the updater’s behavior.
board: StringThe board this OTA is for (e.g., “x64”, “arm64”). The system updater will
reject the OTA if this does not match the device’s expected board name
from build-info.
epoch: u64The epoch of this OTA. See RFC-0071 for details.
mode: i32The update mode, indicating if this is a normal update or a forced recovery.
blob_base_url: StringThe base URL prefix of the blobs, including the delivery blob type. The final URL for each blob will be “{blob_base_url}/{fuchsia_merkle_root}”. Relative URLs are supported, and will be resolved relative to the URL of the OTA manifest.
images: Vec<Image>The partition images that should be written during the update.
blobs: Vec<Blob>Additional blobs that should be written to blob storage.
Implementations§
Source§impl OtaManifest
impl OtaManifest
Sourcepub fn mode(&self) -> UpdateMode
pub fn mode(&self) -> UpdateMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: UpdateMode)
pub fn set_mode(&mut self, value: UpdateMode)
Sets mode to the provided enum value.
Trait Implementations§
Source§impl Clone for OtaManifest
impl Clone for OtaManifest
Source§impl Debug for OtaManifest
impl Debug for OtaManifest
Source§impl Default for OtaManifest
impl Default for OtaManifest
Source§impl Message for OtaManifest
impl Message for OtaManifest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.