MediaCategory

org.llm4s.media.MediaCategory
See theMediaCategory companion trait
object MediaCategory

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object Application extends MediaCategory

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object Audio extends MediaCategory

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Audio.type
case object Image extends MediaCategory

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Image.type
case object Text extends MediaCategory

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Text.type
case object Video extends MediaCategory

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Video.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromMimeType(mimeType: String): Option[MediaCategory]

The category of a MIME type string, e.g. "image/png" -> Image.

The category of a MIME type string, e.g. "image/png" -> Image.

Returns None for a MIME type whose top-level type is not one of all - including malformed input - so callers must decide what an unrecognised payload means rather than being handed a wrong answer.

Attributes

Concrete fields

val all: Seq[MediaCategory]

Every category, in declaration order.

Every category, in declaration order.

Attributes