pub struct ApiType {
pub name: String,
pub doc: Option<String>,
pub kind: ApiTypeKind,
}Expand description
One type an interface defines.
Fields§
§name: StringKebab-case type name, e.g. raw-candidate.
doc: Option<String>The type’s /// doc comment, if any.
kind: ApiTypeKindWhat kind of type it is, with its fields or cases.
Trait Implementations§
impl Eq for ApiType
impl StructuralPartialEq for ApiType
Auto Trait Implementations§
impl Freeze for ApiType
impl RefUnwindSafe for ApiType
impl Send for ApiType
impl Sync for ApiType
impl Unpin for ApiType
impl UnsafeUnpin for ApiType
impl UnwindSafe for ApiType
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