Skip to main content

Label

Type Alias Label 

Source
pub type Label = Or<ServerLinksType, TextComponent>;
Expand description

Label can be either a built-in ServerLinksType (Left) or a custom TextComponent (Right). The discriminant is stored separately in the is_built_in field of the Link struct.

Aliased Type§

pub enum Label {
    Left(ServerLinksType),
    Right(TextComponent),
}

Variants§

§

Left(ServerLinksType)

The left variant.

§

Right(TextComponent)

The right variant.