Dllb.Result (Dllb v0.1.0)

Copy Markdown View Source

Structs representing parsed dllb server responses.

Each struct corresponds to a response status:

Summary

Functions

Converts a decoded JSON map (from Dllb.Protocol.decode/2) into the appropriate result struct by pattern-matching on the "status" key.

Types

Functions

parse(other)

@spec parse(map()) :: {:ok, t()} | {:error, term()}

Converts a decoded JSON map (from Dllb.Protocol.decode/2) into the appropriate result struct by pattern-matching on the "status" key.