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
ory_kratos lib ory model identity_credentials.ex
Raw

lib/ory/model/identity_credentials.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.IdentityCredentials do
@moduledoc """
Credentials represents a specific credential type
"""
@derive [Poison.Encoder]
defstruct [
:config,
:created_at,
:identifiers,
:type,
:updated_at,
:version
]
@type t :: %__MODULE__{
:config => map() | nil,
:created_at => DateTime.t | nil,
:identifiers => [String.t] | nil,
:type => Ory.Model.IdentityCredentialsType.t | nil,
:updated_at => DateTime.t | nil,
:version => integer() | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.IdentityCredentials do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:type, :struct, Ory.Model.IdentityCredentialsType, options)
end
end