pub struct ApiMember {
pub name: String,
pub ty: Option<String>,
pub doc: Option<String>,
}Expand description
A record field, variant case, enum case or flag.
Fields§
§name: StringKebab-case member name.
ty: Option<String>The member’s type in WIT syntax: always present for a record field,
the payload for a variant case that has one, None otherwise.
doc: Option<String>The member’s /// doc comment, if any.
Trait Implementations§
impl Eq for ApiMember
impl StructuralPartialEq for ApiMember
Auto Trait Implementations§
impl Freeze for ApiMember
impl RefUnwindSafe for ApiMember
impl Send for ApiMember
impl Sync for ApiMember
impl Unpin for ApiMember
impl UnsafeUnpin for ApiMember
impl UnwindSafe for ApiMember
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