pub struct ChildRef {
pub name: String,
pub collection: Option<String>,
}
Expand description
A reference to one of the component’s child instances.
Fields§
§name: String
§collection: Option<String>
Trait Implementations§
Source§impl Encodable for ChildRef
impl Encodable for ChildRef
Source§type Encoded = WireChildRef
type Encoded = WireChildRef
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<ChildRef>
impl EncodableOption for Box<ChildRef>
Source§type EncodedOption = WireBox<WireChildRef>
type EncodedOption = WireBox<WireChildRef>
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<ChildRef>
impl<___E> EncodeOption<___E> for Box<ChildRef>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireChildRef> for ChildRef
impl TakeFrom<WireChildRef> for ChildRef
Source§fn take_from(from: &WireChildRef) -> Self
fn take_from(from: &WireChildRef) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for ChildRef
impl RefUnwindSafe for ChildRef
impl Send for ChildRef
impl Sync for ChildRef
impl Unpin for ChildRef
impl UnwindSafe for ChildRef
Blanket Implementations§
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
Mutably borrows from an owned value. Read more