pub struct ConfigFields {
pub fields: Vec<ConfigField>,
pub checksum: ConfigChecksum,
}
Expand description
The resolved configuration for a component.
Fields§
§fields: Vec<ConfigField>
A list of all resolved fields, in the order of the compiled manifest.
checksum: ConfigChecksum
A checksum from the compiled manifest.
Implementations§
Source§impl ConfigFields
impl ConfigFields
Sourcepub fn resolve(
decl: &ConfigDecl,
base_values: ConfigValuesData,
parent_overrides: Option<&Vec<ConfigOverride>>,
) -> Result<Self, ResolutionError>
pub fn resolve( decl: &ConfigDecl, base_values: ConfigValuesData, parent_overrides: Option<&Vec<ConfigOverride>>, ) -> Result<Self, ResolutionError>
Resolve a component’s configuration values according to its declared schema. Should not fail if
decl
and specs
are well-formed.
Sourcepub fn encode_as_fidl_struct(self) -> Vec<u8> ⓘ
pub fn encode_as_fidl_struct(self) -> Vec<u8> ⓘ
Encode the resolved fields as a FIDL struct with every field non-nullable.
The first two bytes of the encoded buffer are a little-endian unsigned integer which denotes
the checksum_length
. Bytes 2..2+checksum_length
are used to store the declaration
checksum. All remaining bytes are used to store the FIDL header and struct.
Trait Implementations§
Source§impl Clone for ConfigFields
impl Clone for ConfigFields
Source§fn clone(&self) -> ConfigFields
fn clone(&self) -> ConfigFields
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 moreSource§impl Debug for ConfigFields
impl Debug for ConfigFields
Source§impl Into<ResolvedConfig> for ConfigFields
impl Into<ResolvedConfig> for ConfigFields
Source§fn into(self) -> ResolvedConfig
fn into(self) -> ResolvedConfig
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ConfigFields
impl PartialEq for ConfigFields
impl StructuralPartialEq for ConfigFields
Auto Trait Implementations§
impl Freeze for ConfigFields
impl RefUnwindSafe for ConfigFields
impl Send for ConfigFields
impl Sync for ConfigFields
impl Unpin for ConfigFields
impl UnwindSafe for ConfigFields
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
)