Type Alias sql_schema_describer::walkers::EnumWalker
source · pub type EnumWalker<'a> = Walker<'a, EnumId>;
Expand description
Traverse an enum.
Aliased Type§
struct EnumWalker<'a> {
pub id: EnumId,
pub schema: &'a SqlSchema,
}
Fields§
§id: EnumId
The identifier.
schema: &'a SqlSchema
The schema for which the identifier is valid.
Implementations§
source§impl<'a> EnumWalker<'a>
impl<'a> EnumWalker<'a>
sourcepub fn variants(self) -> impl ExactSizeIterator<Item = EnumVariantWalker<'a>>
pub fn variants(self) -> impl ExactSizeIterator<Item = EnumVariantWalker<'a>>
The variants of the enum.
sourcepub fn values(self) -> impl ExactSizeIterator<Item = &'a str>
pub fn values(self) -> impl ExactSizeIterator<Item = &'a str>
The names of the variants of the enum.
sourcepub fn description(self) -> Option<&'a str>
pub fn description(self) -> Option<&'a str>
Description (comment) of the enum.