View Source ExPorterSDK.Protocols.Validatable protocol (ExPorterSDK v0.1.0)

Summary

Types

t()

All the types that implement this protocol.

Functions

Validates the structure and returns :ok or {:error, reason}

Types

@type t() :: term()

All the types that implement this protocol.

Functions

@spec validate(struct()) :: :ok | {:error, String.t()}

Validates the structure and returns :ok or {:error, reason}