pub struct HandlerMeta {
pub name: String,
pub aliases: Vec<String>,
pub type_id: i8,
pub ecosystem: String,
pub extensions: Vec<String>,
pub description: String,
pub commands: Vec<HandlerCommand>,
}Expand description
Discovery metadata for a package handler — the single source of truth the
registry uses to enumerate handlers at runtime (znippy handlers) and to
resolve a --format <name> selection (canonical name or any alias).
Fields§
§name: StringCanonical handler name, e.g. "cargo".
aliases: Vec<String>Alternate names accepted on the CLI, e.g. ["rust"].
type_id: i8On-disk DenseUnion / pkg_type discriminant this handler writes.
ecosystem: StringHuman description of the packaging ecosystem, e.g. "Rust / crates.io".
extensions: Vec<String>File extensions the handler claims, e.g. [".crate"].
description: StringOne-line summary.
commands: Vec<HandlerCommand>Handler-specific subcommands callable from the CLI (the handler’s “API”).
Trait Implementations§
Source§impl Clone for HandlerMeta
impl Clone for HandlerMeta
Source§fn clone(&self) -> HandlerMeta
fn clone(&self) -> HandlerMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HandlerMeta
impl RefUnwindSafe for HandlerMeta
impl Send for HandlerMeta
impl Sync for HandlerMeta
impl Unpin for HandlerMeta
impl UnsafeUnpin for HandlerMeta
impl UnwindSafe for HandlerMeta
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more