Wardrik.Connecting (wardrik_protocol v0.1.0-rc.1)

Copy Markdown

The result of connecting an account. If it isn't connected yet, authorization says where the owner signs in.

Summary

Functions

Builds one from the protocol's JSON.

Returns it as the protocol's JSON, without fields that are nil.

Types

t()

@type t() :: %Wardrik.Connecting{
  authorization: term(),
  connected: term(),
  provider: term()
}

Functions

from_json(json)

@spec from_json(map()) :: t()

Builds one from the protocol's JSON.

to_json(value)

@spec to_json(t()) :: map()

Returns it as the protocol's JSON, without fields that are nil.