shakuhachi.database
SkhcDb.Role
Operation on a role.
shakuhachi.config
shakuhachi.libs
shakuhachi.metadata
shakuhachi.plugin
shakuhachi.query
shakuhachi.util
type t =
| Unknown
| Artist
| AlbumArtist
| Composer
type of the role.
val compare : t -> t -> int
compare r1 r2 is Stdlib.compare r1 r2.
compare r1 r2
Stdlib.compare r1 r2
val equal : t -> t -> bool
equal r1 r2 tests whether r1 equals r2.
equal r1 r2
r1
r2
val to_yojson : t -> Yojson.Safe.t
val to_string : t -> string
to_string role returns the string representation of role.
to_string role
role
val to_int : t -> int
to_int role returns the integer representation of role.
to_int role
val of_int : int -> t
of_int i returns the role associated with i. If i is invalid, of_int returns Unknown.
of_int i
i
of_int
Unknown
val roles : t list
roles is the list of all roles.
roles
val choices : (string * t) list
choices is the list of all roles associated with their string representation.
choices