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>,
/* 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.
Trait Implementations§
source§impl Clone for UseConfiguration
impl Clone for UseConfiguration
source§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 moresource§impl Debug for UseConfiguration
impl Debug for UseConfiguration
source§impl Decode<UseConfiguration> for UseConfiguration
impl Decode<UseConfiguration> for UseConfiguration
source§impl Default for UseConfiguration
impl Default for UseConfiguration
source§fn default() -> UseConfiguration
fn default() -> UseConfiguration
source§impl Encode<UseConfiguration> for &UseConfiguration
impl Encode<UseConfiguration> for &UseConfiguration
source§impl PartialEq for UseConfiguration
impl PartialEq for UseConfiguration
source§fn eq(&self, other: &UseConfiguration) -> bool
fn eq(&self, other: &UseConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for UseConfiguration
impl TypeMarker for UseConfiguration
§type Owned = UseConfiguration
type Owned = UseConfiguration
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§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.source§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