pub struct TypeComponent {
pub imports: IndexMap<String, TypeDef>,
pub exports: IndexMap<String, TypeDef>,
}
Expand description
The type of a component in the component model.
Fields§
§imports: IndexMap<String, TypeDef>
The named values that this component imports.
exports: IndexMap<String, TypeDef>
The named values that this component exports.
Trait Implementations§
Source§impl Default for TypeComponent
impl Default for TypeComponent
Source§fn default() -> TypeComponent
fn default() -> TypeComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypeComponent
impl<'de> Deserialize<'de> for TypeComponent
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
Auto Trait Implementations§
impl Freeze for TypeComponent
impl RefUnwindSafe for TypeComponent
impl Send for TypeComponent
impl Sync for TypeComponent
impl Unpin for TypeComponent
impl UnwindSafe for TypeComponent
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