MagikaEx.Result (magika_ex v0.1.3)

Copy Markdown

File type information with inference scoring.

Summary

Types

t()

A struct representing the identification result from Magika.

Functions

File type information.

Types

t()

@type t() :: %MagikaEx.Result{
  description: String.t(),
  group: String.t(),
  is_text: boolean(),
  label: String.t(),
  mime_type: String.t(),
  score: float()
}

A struct representing the identification result from Magika.

Functions

%MagikaEx.Result{}

(struct)

File type information.

Fields

  • :label - The unique label identifying this file type.
  • :mime_type - The MIME type of the file type.
  • :group - The group of the file type.
  • :description - The description of the file type.
  • :score - The inference score between 0 and 1.
  • :is_text - Whether the file type is text.