Skip to main content

Module plugin

Module plugin 

Source
Expand description

Plugin trait for archive-type-aware metadata extraction.

A handler is one static HandlerSpec (name, type_id, aliases, extensions, columns — each stated once) plus ArchiveTypePlugin::extract_metadata. Everything else (name, type_id, meta, schema_fields, matches_path, the shared coords subcommand) is derived from the spec.

Structs§

ExtensionRow
Metadata extracted from a single file by a plugin
HandlerCommand
One handler-specific subcommand advertised through HandlerMeta::commands.
HandlerMeta
Owned discovery record of a handler (what znippy handlers lists and --format resolves against). Derived from the HandlerSpec.
HandlerSpec
The static description of one handler: every fact about it, stated once.
PluginRegistry
Registry holding the single active package handler.

Enums§

Claim
How a handler decides that a path is its own. It is part of the spec, so matches_path is derived from it and never a hidden second opinion.
Col
The Arrow type of one handler column.
ExtensionValue
Typed values for extension fields

Traits§

ArchiveTypePlugin
Trait implemented by each archive type plugin.

Functions§

default_command
The shared subcommand set: coords <file> runs the handler’s own extract_metadata over the file (its bytes when readable, else just the path) and prints the coordinate columns — every column up to and including version, or the first column when there is no version.
file_name
The last path segment (a/b/c.crate → c.crate).