dagger/dsl/enum_type_def

Values

pub fn description(
  parent: types.EnumTypeDef,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

A doc string for the enum, if any.

pub fn enum_type_def(
  id id: types.EnumTypeDef,
) -> types.EnumTypeDef
pub fn id(parent: types.EnumTypeDef) -> types.EnumTypeDef

A unique identifier for this EnumTypeDef.

pub fn members(
  parent: types.EnumTypeDef,
  select select: fn(types.EnumValueTypeDef) -> List(types.Field),
  client client: types.Client,
  then handler: fn(
    Result(List(types.EnumValueTypeDef), types.QueryError),
  ) -> a,
) -> a

The members of the enum.

pub fn name(
  parent: types.EnumTypeDef,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

The name of the enum.

pub fn source_map(parent: types.EnumTypeDef) -> types.SourceMap

The location of this enum declaration.

pub fn source_module_name(
  parent: types.EnumTypeDef,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

If this EnumTypeDef is associated with a Module, the name of the module. Unset otherwise.

Search Document