mod enum_directive
- module enum_directive
Implementation of the
rust:enum::directiveStructs
- EnumDirective
Struct to hold data for documenting an enum
- name: String
The full Rust path of the enum, used as the name of the directive.
- options: Vec < DirectiveOption >
The directive options to use.
- content: Vec < String >
The docstring for the enum.
- variants: Vec < StructDirective >
The variants within the enum.
Impls
- impl EnumDirective
- fn from_item (parent_path : & str , item : & ItemEnum , inherited_visibility : & Option < & Visibility > ,) -> Directive
Create a new
Directive::Enumfrom asyn::ItemEnum- Args:
- parent_path:
The full path of the module the enum is in.
- item:
The
syn::ItemEnumto parse.
- Returns:
A new
Directive::Enum, which contains the parsedEnumDirectivein it.