pub struct FetchedRuleSet { /* private fields */ }Expand description
A rule set this crate fetches from its publisher on demand
(RuleSetCache): its files are not redistributed by the
project. Each is one bundle of a family; the rule sets of a family come from the
same downloads and are fetched together.
Implementations§
Source§impl FetchedRuleSet
impl FetchedRuleSet
Sourcepub const fn name(&self) -> &'static str
pub const fn name(&self) -> &'static str
Its name, as --rules and Validator::from_cache
take it, and as its manifest gives it (factur-x-en16931).
Sourcepub const fn family(&self) -> &'static str
pub const fn family(&self) -> &'static str
The name of its family (factur-x, xrechnung, fr-ctc, peppol), which
RuleSetCache::fetch (feature fetch) also takes.
Sourcepub const fn family_title(&self) -> &'static str
pub const fn family_title(&self) -> &'static str
The title of its family (Factur-X).
Sourcepub fn sources(&self) -> &[Source]
pub fn sources(&self) -> &[Source]
The files fetched for its family, with their pinned URLs and digests.
Sourcepub const fn syntax(&self) -> Option<Syntax>
pub const fn syntax(&self) -> Option<Syntax>
The syntax of the documents it validates, when it is UBL or CII.
Sourcepub fn bundle_path(&self) -> String
pub fn bundle_path(&self) -> String
The directory of its bundle, relative to the cache’s rule-set directory:
<release>/<bundle> (factur-x-1.09.2/en16931), as the fetch script of its
family lays it out under its output directory.