HfHub.Discussions.Comment (HfHub v0.2.0)

Copy Markdown View Source

Represents a comment on a discussion or pull request.

Summary

Functions

Creates a Comment from API response.

Types

t()

@type t() :: %HfHub.Discussions.Comment{
  author: String.t(),
  content: String.t(),
  created_at: DateTime.t() | nil,
  edited: boolean(),
  hidden: boolean(),
  id: String.t(),
  updated_at: DateTime.t() | nil
}

Functions

from_response(response)

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

Creates a Comment from API response.