pub struct Generated {
pub interface_name: String,
pub iface_kebab: String,
pub user_types: Vec<String>,
pub wit: String,
pub conversions: String,
}Expand description
The product of generating from a plugin crate’s source.
Fields§
§interface_name: StringThe interface’s Rust trait name (e.g. Greeter).
iface_kebab: Stringkebab-case interface name (the WIT package + interface name).
user_types: Vec<String>Rust idents of the #[derive(WitType)] user types found.
wit: StringThe complete .wit document.
conversions: StringRust source for the generated↔author From conversions (to be include!d
inside the wasm adapter module). Empty when there are no user types.
Auto Trait Implementations§
impl Freeze for Generated
impl RefUnwindSafe for Generated
impl Send for Generated
impl Sync for Generated
impl Unpin for Generated
impl UnsafeUnpin for Generated
impl UnwindSafe for Generated
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