pub struct Child {
pub name: Option<String>,
pub url: Option<String>,
pub startup: Option<StartupMode>,
pub environment: Option<String>,
pub on_terminate: Option<OnTerminate>,
pub config_overrides: Option<Vec<ConfigOverride>>,
/* private fields */
}
Expand description
Statically declares a child component instance.
Fields§
§name: Option<String>
(Required) The name assigned to the child by its parent.
Must be non-empty, unique among all siblings, and contain only the following characters: [a-z0-9-_.].
url: Option<String>
(Required) The child component’s URL.
Must be non-empty and a well-formed URL.
startup: Option<StartupMode>
(Required) The startup mode for the component instance.
Must be set.
environment: Option<String>
(Optional) The environment assigned to this child.
May be unset, in which case the child will inherit the parent component’s
environment. If set, the name must reference an environment defined in
the ComponentDecl
and it must contain only the following characters:
[a-z0-9-_.].
on_terminate: Option<OnTerminate>
(Optional, defaults to NONE
) The action to take if this component
instance terminates unexpectedly.
config_overrides: Option<Vec<ConfigOverride>>
Configuration overrides to apply to the child’s base configuration.
For a configuration field to be overridden it must be marked as mutable by parent.
Parents must pass ConfigOverride
values which match the child’s declared schema types
exactly.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Child, D> for Child
impl<D: ResourceDialect> Decode<Child, D> for Child
Source§impl TypeMarker for Child
impl TypeMarker for Child
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 Child
impl ValueTypeMarker for Child
impl Persistable for Child
impl StructuralPartialEq for Child
Auto Trait Implementations§
impl Freeze for Child
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnwindSafe for Child
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)