View Source Dagger.FunctionArg (dagger v0.9.3)
An argument accepted by a function.
This is a specification for an argument at function definition time, not an argument passed at function call time.
Link to this section Summary
Functions
A default value to use for this argument when not explicitly set by the caller, if any
A doc string for the argument, if any
The ID of the argument
The name of the argument
The type of the argument
Link to this section Types
Link to this section Functions
@spec default_value(t()) :: {:ok, Dagger.JSON.t() | nil} | {:error, term()}
A default value to use for this argument when not explicitly set by the caller, if any
@spec description(t()) :: {:ok, Dagger.String.t() | nil} | {:error, term()}
A doc string for the argument, if any
@spec id(t()) :: {:ok, Dagger.FunctionArgID.t()} | {:error, term()}
The ID of the argument
@spec name(t()) :: {:ok, Dagger.String.t()} | {:error, term()}
The name of the argument
@spec type_def(t()) :: Dagger.TypeDef.t()
The type of the argument