Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/ui_node_input_attributes.ex
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.UiNodeInputAttributes do
@moduledoc """
InputAttributes represents the attributes of an input node
"""
@derive [Poison.Encoder]
defstruct [
:autocomplete,
:disabled,
:label,
:name,
:node_type,
:onclick,
:pattern,
:required,
:type,
:value
]
@type t :: %__MODULE__{
:autocomplete => String.t | nil,
:disabled => boolean(),
:label => Ory.Model.UiText.t | nil,
:name => String.t,
:node_type => String.t,
:onclick => String.t | nil,
:pattern => String.t | nil,
:required => boolean() | nil,
:type => String.t,
:value => AnyType | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.UiNodeInputAttributes do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:label, :struct, Ory.Model.UiText, options)
|> deserialize(:value, :struct, Ory.Model.AnyType, options)
end
end