pub struct OtaManifest {
pub build_info_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§
§build_info_version: StringThe version from the build-info of the target build. 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§fn clone(&self) -> OtaManifest
fn clone(&self) -> OtaManifest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.