# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.PasswordRequiredError do
@moduledoc """
Returned by `GET /public/notes/{token}` when the note is password-protected. `requiresPassword` is always `true` in this response; `invalidPassword` is `true` only when a password was supplied and rejected.
"""
@derive JSON.Encoder
defstruct [
:error,
:code,
:requiresPassword,
:invalidPassword
]
@type t :: %__MODULE__{
:error => String.t,
:code => String.t | nil,
:requiresPassword => boolean(),
:invalidPassword => boolean() | nil
}
def decode(value) do
value
end
end