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