Skip to main content

import_source

Function import_source 

Source
pub fn import_source(f: &KnowledgeFact) -> Option<String>
Expand description

The contract’s import source of an imported fact, from its anchor key: git:<sha> → import:git:<sha>, <path>#<section path>/<n> → import:docs:<path>#<section slug> (the section path through the contract’s ctxpkg::import_slug). None when the key names neither.