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§
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<D: ResourceDialect> Decode<UseConfiguration, D> for UseConfiguration
impl<D: ResourceDialect> Decode<UseConfiguration, D> for UseConfiguration
source§impl Default for UseConfiguration
impl Default for UseConfiguration
source§fn default() -> UseConfiguration
fn default() -> UseConfiguration
source§impl<D: ResourceDialect> Encode<UseConfiguration, D> for &UseConfiguration
impl<D: ResourceDialect> Encode<UseConfiguration, D> 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 moreimpl Persistable for UseConfiguration
impl StructuralPartialEq for UseConfiguration
Auto Trait Implementations§
impl Freeze for UseConfiguration
impl RefUnwindSafe for UseConfiguration
impl Send for UseConfiguration
impl Sync for UseConfiguration
impl Unpin for UseConfiguration
impl UnwindSafe for UseConfiguration
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)