HfHub.Discussions.StatusChange (HfHub v0.2.0)

Copy Markdown View Source

Represents a status change event in a discussion's history.

Summary

Functions

Creates a StatusChange from API response.

Types

status()

@type status() :: :open | :closed | :merged

t()

@type t() :: %HfHub.Discussions.StatusChange{
  author: String.t(),
  comment: String.t() | nil,
  created_at: DateTime.t() | nil,
  id: String.t(),
  status: status()
}

Functions

from_response(response)

@spec from_response(map()) :: t()

Creates a StatusChange from API response.