pub struct ComponentExternData {
pub implements: Option<TryString>,
pub external_id: Option<TryString>,
}Expand description
Metadata associated with the name of a component import or export.
Fields§
§implements: Option<TryString>The (implements "...") annotation, if present: the name of the
interface that this item implements.
This is metadata only: imports are resolved by their own name (e.g.
my-label), not by this interface name. Embedders can use it to find
out which interface a labelled item implements.
external_id: Option<TryString>The (external-id "...") annotation, if present: a free-form
host-defined identifier which is ignored by type checking.
Trait Implementations§
Source§impl Debug for ComponentExternData
impl Debug for ComponentExternData
Source§impl<'de> Deserialize<'de> for ComponentExternData
impl<'de> Deserialize<'de> for ComponentExternData
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 ComponentExternData
impl Serialize for ComponentExternData
Source§impl TryClone for ComponentExternData
impl TryClone for ComponentExternData
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 ComponentExternData
impl RefUnwindSafe for ComponentExternData
impl Send for ComponentExternData
impl Sync for ComponentExternData
impl Unpin for ComponentExternData
impl UnsafeUnpin for ComponentExternData
impl UnwindSafe for ComponentExternData
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.