Uniq.UUID.to_string

You're seeing just the function to_string, go back to Uniq.UUID module for more information.

Specs

to_string(formatted() | info()) :: String.t()

Formats a Elixir.Uniq.UUID as a string, using the format it was originally generated with.

See to_string/2 if you want to specify what format to produce.

Specs

to_string(formatted() | info(), format()) :: String.t()

Same as to_string/1, except you can specify the desired format.

The format can be one of the following:

  • :default, produces strings like "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
  • :urn, produces strings like "urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
  • :hex, produces strings like "f81d4fae7dec11d0a76500a0c91e6bf6"
  • :slug, produces strings like "-B1Prn3sEdCnZQCgyR5r9g=="
  • :raw, produces the raw binary encoding of the uuid in 128 bits