pub struct ComponentExtern {
pub data: ComponentExternData,
pub ty: TypeDef,
}Expand description
An import or an export of a component or a component instance.
This records the type of the item that is being imported or exported along with any metadata associated with the item.
Fields§
§data: ComponentExternDataMetadata associated with this item’s name, such as
(implements "...").
ty: TypeDefThe type of this item.
Trait Implementations§
Source§impl Debug for ComponentExtern
impl Debug for ComponentExtern
Source§impl<'de> Deserialize<'de> for ComponentExtern
impl<'de> Deserialize<'de> for ComponentExtern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ComponentExtern
impl Serialize for ComponentExtern
Source§impl TryClone for ComponentExtern
impl TryClone for ComponentExtern
Source§fn try_clone(&self) -> Result<Self, OutOfMemory>
fn try_clone(&self) -> Result<Self, OutOfMemory>
Attempt to clone
self, returning an error if any allocation fails
during cloning.§fn clone_panic_on_oom(&self) -> Self
fn clone_panic_on_oom(&self) -> Self
Clone
self, panicking on allocation failure.Auto Trait Implementations§
impl Freeze for ComponentExtern
impl RefUnwindSafe for ComponentExtern
impl Send for ComponentExtern
impl Sync for ComponentExtern
impl Unpin for ComponentExtern
impl UnsafeUnpin for ComponentExtern
impl UnwindSafe for ComponentExtern
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> TryToOwned for Twhere
T: TryClone,
impl<T> TryToOwned for Twhere
T: TryClone,
§fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
Try to allocate an owned version of
self.