View Source Bonfire.Data.Identity.Character (Bonfire v0.9.11-social-beta.6)

A username mixin that denies reuse of the same or similar usernames even when the username has been deleted.

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.Character{
  __meta__: Ecto.Schema.Metadata.t(),
  actor: term(),
  aliased: term(),
  aliases: term(),
  feed: term(),
  follow_count: term(),
  followed: term(),
  followers: term(),
  id: Needle.UID.t() | nil,
  inbox: term(),
  inbox_id: term(),
  notifications: term(),
  notifications_id: term(),
  outbox: term(),
  outbox_id: term(),
  peered: term(),
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  profile: term(),
  tree: term(),
  user: term(),
  username: term(),
  username_hash: term()
}

Functions

changeset(char \\ %Character{}, params, extra \\ nil)

changeset_basic(char, params)

delete(struct, key)

get(struct, key, default \\ nil)

hash(name)

put(struct, key, val)

uniform(name)