honk/types

Types

Represents a parsed lexicon document

pub type LexiconDoc {
  LexiconDoc(id: String, defs: json.Json)
}

Constructors

AT Protocol string formats

pub type StringFormat {
  DateTime
  Uri
  AtUri
  Did
  Handle
  AtIdentifier
  Nsid
  Cid
  Language
  Tid
  RecordKey
}

Constructors

  • DateTime
  • Uri
  • AtUri
  • Did
  • Handle
  • AtIdentifier
  • Nsid
  • Cid
  • Language
  • Tid
  • RecordKey

Values

pub fn format_to_string(format: StringFormat) -> String

Convert a StringFormat to string

pub fn string_to_format(s: String) -> Result(StringFormat, Nil)

Convert a string to a StringFormat

Search Document