View Source EctoKsuid.Type (ecto_ksuid v0.3.0)
Contains callbacks for an Ecto.ParameterizedType
Link to this section Summary
Link to this section Functions
@spec autogenerate(EctoKsuid.Options.t()) :: EctoKsuid.runtime_ksuid()
@spec cast(String.t() | nil | any(), EctoKsuid.Options.t()) :: {:ok, EctoKsuid.runtime_ksuid()} | {:ok, nil} | :error
@spec dump(EctoKsuid.runtime_ksuid() | nil | any(), function(), EctoKsuid.Options.t()) :: {:ok, EctoKsuid.database_ksuid()} | {:ok}
@spec init(keyword()) :: EctoKsuid.Options.t()
@spec load( EctoKsuid.database_ksuid() | nil | any(), function(), EctoKsuid.Options.t() ) :: {:ok, EctoKsuid.runtime_ksuid()} | {:ok}
@spec type(EctoKsuid.Options.t()) :: :string