HfHub.Discussions.TitleChange (HfHub v0.2.0)

Copy Markdown View Source

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

Summary

Functions

Creates a TitleChange from API response.

Types

t()

@type t() :: %HfHub.Discussions.TitleChange{
  author: String.t(),
  created_at: DateTime.t() | nil,
  id: String.t(),
  new_title: String.t(),
  old_title: String.t()
}

Functions

from_response(response)

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

Creates a TitleChange from API response.