pub struct OfferConfiguration {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
/* private fields */
}
Expand description
Declares a configuration capability offered by a component to one of its children, which may have been offered by the component’s containing realm, the component itself, or one of its other children.
Fields§
§source: Option<Ref>
(Required) The provider of the capability relative to the component
itself. Must be parent
, self
, child
, or void
.
If set to void
, then the target must offer or use the capability with
OPTIONAL
or TRANSITIONAL
availability.
source_name: Option<String>
(Required) Name identifying the configuration being offered.
target: Option<Ref>
(Required) Reference to the target. Must be child
, or collection
.
target_name: Option<String>
(Required) The name by which the capability is being offered.
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
If set to required
, the target may use or offer the capability with
either required
or optional
availability. If set to optional
, the
target must use or offer the capability with optional
availability.
The same_as_target
value causes this offer’s availability to match the
availability set in the target.
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 OfferConfiguration
impl Clone for OfferConfiguration
source§fn clone(&self) -> OfferConfiguration
fn clone(&self) -> OfferConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OfferConfiguration
impl Debug for OfferConfiguration
source§impl<D: ResourceDialect> Decode<OfferConfiguration, D> for OfferConfiguration
impl<D: ResourceDialect> Decode<OfferConfiguration, D> for OfferConfiguration
source§impl Default for OfferConfiguration
impl Default for OfferConfiguration
source§fn default() -> OfferConfiguration
fn default() -> OfferConfiguration
source§impl<D: ResourceDialect> Encode<OfferConfiguration, D> for &OfferConfiguration
impl<D: ResourceDialect> Encode<OfferConfiguration, D> for &OfferConfiguration
source§impl PartialEq for OfferConfiguration
impl PartialEq for OfferConfiguration
source§fn eq(&self, other: &OfferConfiguration) -> bool
fn eq(&self, other: &OfferConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for OfferConfiguration
impl TypeMarker for OfferConfiguration
§type Owned = OfferConfiguration
type Owned = OfferConfiguration
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 OfferConfiguration
impl ValueTypeMarker for OfferConfiguration
§type Borrowed<'a> = &'a OfferConfiguration
type Borrowed<'a> = &'a OfferConfiguration
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for OfferConfiguration
impl StructuralPartialEq for OfferConfiguration
Auto Trait Implementations§
impl Freeze for OfferConfiguration
impl RefUnwindSafe for OfferConfiguration
impl Send for OfferConfiguration
impl Sync for OfferConfiguration
impl Unpin for OfferConfiguration
impl UnwindSafe for OfferConfiguration
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
)