GenMagic v1.0.2 GenMagic.Result View Source

Represents the results obtained from libmagic.

Please note that this struct is only returned if the underlying check has succeeded.

Link to this section Summary

Types

t()

Represents the result.

Link to this section Types

Link to this type

t()

View Source
t() :: %GenMagic.Result{
  content: String.t(),
  encoding: String.t(),
  mime_type: String.t()
}

Represents the result.

Contains the MIME type, Encoding and Content fields returned by libmagic, as per the flags:

  • MIME Type: MAGIC_FLAGS_COMMON|MAGIC_MIME_TYPE
  • Encoding: MAGIC_FLAGS_COMMON|MAGIC_MIME_ENCODING
  • Type Name (Content): MAGIC_FLAGS_COMMON|MAGIC_NONE