Skip to main content

Module derive

Module derive 

Source
Expand description

KeySpecifier derive-deftly macro and its support code

ยงSTABILITY - NOTHING IN THIS MODULE IS PART OF THE STABLE PUBLIC API

The pub items in this module are accessible as $crate::key_specifier_derive, but #[doc(hidden)] is applied at the top level.

(Recall that the actual derive-deftly macro KeySpecifier ends up in the crate toplevel, so that does form part of our public API.)

Re-exportsยง

use std::iter; ๐Ÿ”’
use derive_deftly::define_derive_deftly; ๐Ÿ”’
use itertools::EitherOrBoth; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use itertools::izip; ๐Ÿ”’
use crate::DENOTATOR_SEP; ๐Ÿ”’
pub use crate::KeyPathInfoBuilder;
use RawComponentParseResult as RCPR; ๐Ÿ”’
pub use derive_deftly_template_KeySpecifier;
pub use derive_deftly_template_CertSpecifier;
use super::*; ๐Ÿ”’

Macrosยง

internal
Create an internal error, including a message like format!, and capturing this call site
into_internal
Helper for converting an error into an internal error

Structsยง

Bug
Programming error (a bug)

Enumsยง

RawComponentParseResult
Error returned from RawKeySpecifierComponentParser::parse

Traitsยง

RawKeySpecifierComponent
Trait for (only) formatting as a KeySpecifierComponent
RawKeySpecifierComponentParser
Trait for parsing a path component, used by parse_arti_path

Functionsยง

arti_path_from_components
Make an ArtiPath like pc/pc/pc/lc_lc_lc
arti_path_string_from_components ๐Ÿ”’
Make a string like pc/pc/pc/lc_lc_lc
arti_pattern_from_components
Make a KeyPathPattern::Arti like pc/pc/pc/lc_lc_lc
cert_arti_path_string_from_components ๐Ÿ”’
Make a string like pc/pc/pc/pd+pd+pd@cd+cd+cd+cd
cert_arti_pattern_from_components
Make a KeyPathPattern::Arti for a certificate specifier
describe_via_components
Build a KeyPathInfo given the information about a key specifier
extract ๐Ÿ”’
Split a string into components and parse each one
parse_arti_path
Parse a KeyPath as an ArtiPath like pc/pc/pc/lc_lc_lc
parse_cert_denotators
Parse the denotators from the ArtiPath of a certificate.

Type Aliasesยง

Parsers ๐Ÿ”’
List of parsers for fields