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>

source

pub fn namespace(self) -> Option<&'a str>

The namespace the enum belongs to, if defined.

source

pub fn name(self) -> &'a str

The name of the enum. This is a made up name on MySQL.

source

pub fn variants(self) -> impl ExactSizeIterator<Item = EnumVariantWalker<'a>>

The variants of the enum.

source

pub fn values(self) -> impl ExactSizeIterator<Item = &'a str>

The names of the variants of the enum.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the enum.