pub struct Frontmatter {
pub type_: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub resource: Option<String>,
pub timestamp: Option<String>,
pub tags: Vec<String>,
pub extra: BTreeMap<String, String>,
}Expand description
The recognised frontmatter fields, extracted from a concept’s YAML block.
Unknown keys are preserved in extra, as the spec
requires consumers to tolerate and round-trip them.
Fields§
§type_: Option<String>The required type — the concept kind (e.g. BigQuery Table).
title: Option<String>Human-readable name.
description: Option<String>One-sentence summary.
resource: Option<String>URI of the underlying asset.
timestamp: Option<String>ISO 8601 last-modified datetime.
Cross-cutting tags.
extra: BTreeMap<String, String>Any other scalar keys, preserved verbatim.
Trait Implementations§
Source§impl Clone for Frontmatter
impl Clone for Frontmatter
Source§fn clone(&self) -> Frontmatter
fn clone(&self) -> Frontmatter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Frontmatter
impl Debug for Frontmatter
Source§impl Default for Frontmatter
impl Default for Frontmatter
Source§fn default() -> Frontmatter
fn default() -> Frontmatter
Returns the “default value” for a type. Read more
impl Eq for Frontmatter
Source§impl PartialEq for Frontmatter
impl PartialEq for Frontmatter
Source§fn eq(&self, other: &Frontmatter) -> bool
fn eq(&self, other: &Frontmatter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Frontmatter
Auto Trait Implementations§
impl Freeze for Frontmatter
impl RefUnwindSafe for Frontmatter
impl Send for Frontmatter
impl Sync for Frontmatter
impl Unpin for Frontmatter
impl UnsafeUnpin for Frontmatter
impl UnwindSafe for Frontmatter
Blanket Implementations§
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