pub struct Metadata { /* private fields */ }
Expand description
Metadata of a document, as needed by Subplot.
Implementations
sourceimpl Metadata
impl Metadata
sourcepub fn new<P>(
basedir: P,
meta: &YamlMetadata,
template: Option<&str>
) -> Result<Metadata, SubplotError>where
P: AsRef<Path> + Debug,
pub fn new<P>(
basedir: P,
meta: &YamlMetadata,
template: Option<&str>
) -> Result<Metadata, SubplotError>where
P: AsRef<Path> + Debug,
Construct a Metadata from a Document, if possible.
sourcepub fn markdown_filename(&self) -> &Path
pub fn markdown_filename(&self) -> &Path
Return filename of the markdown file.
sourcepub fn bindings_filenames(&self) -> Vec<&Path>ⓘ
pub fn bindings_filenames(&self) -> Vec<&Path>ⓘ
Return filename where bindings are specified.
sourcepub fn document_impl(&self, template: &str) -> Option<&DocumentImpl>
pub fn document_impl(&self, template: &str) -> Option<&DocumentImpl>
Return the document implementation (filenames, spec, etc) for the given template name
sourcepub fn templates(&self) -> impl Iterator<Item = &str>
pub fn templates(&self) -> impl Iterator<Item = &str>
Return the templates the document expects to implement
sourcepub fn bibliographies(&self) -> Vec<&Path>ⓘ
pub fn bibliographies(&self) -> Vec<&Path>ⓘ
Return the bibliographies.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more