Obscura.Redactable protocol (obscura v0.1.0)

Copy Markdown View Source

Protocol for application data that can define its own Obscura redaction policy.

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

redact(value, opts)

@spec redact(
  t(),
  keyword()
) :: {:ok, term(), [Obscura.Structured.Item.t()]} | {:error, term()}