pub struct Interface {
pub name: Option<String>,
pub types: IndexMap<String, TypeId>,
pub functions: IndexMap<String, Function>,
pub docs: Docs,
pub stability: Stability,
pub package: Option<PackageId>,
}
Fields§
§name: Option<String>
Optionally listed name of this interface.
This is None
for inline interfaces in worlds.
types: IndexMap<String, TypeId>
Exported types from this interface.
Export names are listed within the types themselves. Note that the
export name here matches the name listed in the TypeDef
.
functions: IndexMap<String, Function>
Exported functions from this interface.
docs: Docs
Documentation associated with this interface.
stability: Stability
Stability attribute for this interface.
package: Option<PackageId>
The package that owns this interface.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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