pub struct HandlerSpec {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub type_id: i8,
pub ecosystem: &'static str,
pub extensions: &'static [&'static str],
pub claim: Claim,
pub description: &'static str,
pub fields: &'static [(&'static str, Col)],
pub commands: &'static [(&'static str, &'static str)],
}Expand description
The static description of one handler: every fact about it, stated once.
Fields§
§name: &'static strCanonical handler name, e.g. "cargo".
aliases: &'static [&'static str]Alternate names accepted on the CLI, e.g. ["rust"].
type_id: i8On-disk pkg_type discriminant this handler writes.
ecosystem: &'static strHuman description of the packaging ecosystem.
extensions: &'static [&'static str]File extensions the handler advertises.
claim: ClaimHow the handler claims a path (see Claim); matches_path is this.
description: &'static strOne-line summary.
fields: &'static [(&'static str, Col)]The index columns this handler contributes (keys of its ExtensionRow).
commands: &'static [(&'static str, &'static str)]Subcommands beyond the shared coords, as (verb, about).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandlerSpec
impl RefUnwindSafe for HandlerSpec
impl Send for HandlerSpec
impl Sync for HandlerSpec
impl Unpin for HandlerSpec
impl UnsafeUnpin for HandlerSpec
impl UnwindSafe for HandlerSpec
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