Struct UseConfiguration
pub struct UseConfiguration {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
pub type_: Option<ConfigType>,
pub default: Option<ConfigValue>,
pub source_dictionary: Option<String>,
/* private fields */
}
Fields§
§source: Option<Ref>
(Required) The provider of the configuration relative to the component
itself. Must be parent
, self
, child
.
source_name: Option<String>
(Required) Name identifying the configuration, by which it was presented to this component.
target_name: Option<String>
(Required) The name that the component sees for this configuration. This must match a key in the ‘config’ schema for this component. The matching config field’s type must match this configuration type.
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
If set to required
, the component is likely to malfunction if this
capability is not provided. If set to optional
, the component can
handle the capability’s absence.
type_: Option<ConfigType>
(Required) The type of this config value. If target_name
matches a
key in the config
schema, then this type must match that type.
default: Option<ConfigValue>
(Optional): If this is set, this is the value that will be provided via routing if the capability is successfully routed from void.
source_dictionary: Option<String>
(Optional) Path in a dictionary provided by source
which contains source_name
.
If this field is absent, source_name
identifies a capability directly routed
by source
. If set, source_name
identifies a capability nested inside this
dictionary.
Trait Implementations§
§impl Clone for UseConfiguration
impl Clone for UseConfiguration
§fn clone(&self) -> UseConfiguration
fn clone(&self) -> UseConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for UseConfiguration
impl Debug for UseConfiguration
§impl<D> Decode<UseConfiguration, D> for UseConfigurationwhere
D: ResourceDialect,
impl<D> Decode<UseConfiguration, D> for UseConfigurationwhere
D: ResourceDialect,
§fn new_empty() -> UseConfiguration
fn new_empty() -> UseConfiguration
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for UseConfiguration
impl Default for UseConfiguration
§fn default() -> UseConfiguration
fn default() -> UseConfiguration
§impl<D> Encode<UseConfiguration, D> for &UseConfigurationwhere
D: ResourceDialect,
impl<D> Encode<UseConfiguration, D> for &UseConfigurationwhere
D: ResourceDialect,
§impl PartialEq for UseConfiguration
impl PartialEq for UseConfiguration
§impl TypeMarker for UseConfiguration
impl TypeMarker for UseConfiguration
§type Owned = UseConfiguration
type Owned = UseConfiguration
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for UseConfiguration
impl ValueTypeMarker for UseConfiguration
§type Borrowed<'a> = &'a UseConfiguration
type Borrowed<'a> = &'a UseConfiguration
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<UseConfiguration as TypeMarker>::Owned,
) -> <UseConfiguration as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<UseConfiguration as TypeMarker>::Owned, ) -> <UseConfiguration as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.