pub struct NameMapping {
pub source_name: String,
pub target_name: String,
}
Expand description
Type used to create a mapping between 2 names. Used to rename service or component instances in FIDL declarations.
Fields§
§source_name: String
§target_name: String
Trait Implementations§
Source§impl Clone for NameMapping
impl Clone for NameMapping
Source§fn clone(&self) -> NameMapping
fn clone(&self) -> NameMapping
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NameMapping
impl Debug for NameMapping
Source§impl Encodable for NameMapping
impl Encodable for NameMapping
Source§type Encoded = WireNameMapping
type Encoded = WireNameMapping
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<NameMapping>
impl EncodableOption for Box<NameMapping>
Source§type EncodedOption = WireBox<WireNameMapping>
type EncodedOption = WireBox<WireNameMapping>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for NameMappingwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for NameMappingwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<NameMapping>where
___E: Encoder + ?Sized,
NameMapping: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<NameMapping>where
___E: Encoder + ?Sized,
NameMapping: Encode<___E>,
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<WireNameMapping> for NameMapping
impl TakeFrom<WireNameMapping> for NameMapping
Source§fn take_from(from: &WireNameMapping) -> Self
fn take_from(from: &WireNameMapping) -> 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 NameMapping
impl RefUnwindSafe for NameMapping
impl Send for NameMapping
impl Sync for NameMapping
impl Unpin for NameMapping
impl UnwindSafe for NameMapping
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