Current section

Files

Jump to
api_doc lib doc info.ex
Raw

lib/doc/info.ex

defmodule APIDoc.Doc.Info do
@moduledoc ~S"""
General API information.
## Example
```
%Info{
name: "Example API",
version: "0.1.3",
description: \"""
Example API documentation.
Supports _markdown_.
\"""
}
```
"""
alias APIDoc.Doc.Contact
@typedoc @moduledoc
@type t :: %__MODULE__{
name: String.t(),
version: String.t(),
description: String.t(),
contact: Contact.t() | nil
}
@enforce_keys [:name, :version, :description]
defstruct @enforce_keys ++ [contact: nil]
end