View Source Snap.Suggest.Option (Snap v0.12.1)

Represents an individual suggest / options dictionary from a Search API response.

Summary

Types

t()

@type t() :: %Snap.Suggest.Option{
  freq: integer(),
  id: String.t() | nil,
  index: String.t() | nil,
  score: float(),
  source: map() | nil,
  text: String.t()
}

Functions

new(response)