Codex.Protocol.RateLimit.Snapshot (Codex SDK v0.6.0)

Copy Markdown View Source

Complete rate limit snapshot

Summary

Types

plan_type()

@type plan_type() :: :plus | :pro | :team | :enterprise | :api | nil

t()

@type t() :: %Codex.Protocol.RateLimit.Snapshot{
  credits: (Codex.Protocol.RateLimit.CreditsSnapshot.t() | nil) | nil,
  plan_type: plan_type() | nil,
  primary: (Codex.Protocol.RateLimit.Window.t() | nil) | nil,
  secondary: (Codex.Protocol.RateLimit.Window.t() | nil) | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(snapshot)

@spec to_map(t()) :: map()