pub struct FrontmatterTable {
pub key: String,
pub heading: Option<String>,
pub columns: Vec<FrontmatterColumn>,
}Expand description
One entry of Style::frontmatter_tables: where the rows of a table
come from, its columns, and the heading above it.
Fields§
§key: StringThe frontmatter field the rows come from: a list of maps, one row per map. An item that is not a map is skipped. When the field is absent, is not a list or holds no map, the tag is removed, heading and all.
heading: Option<String>The heading above the table. Absent or "", there is none. The
tag’s title attribute replaces it, and title="" drops it.
columns: Vec<FrontmatterColumn>The columns, left to right. With none, the tag is removed.
Trait Implementations§
Source§impl Clone for FrontmatterTable
impl Clone for FrontmatterTable
Source§impl Debug for FrontmatterTable
impl Debug for FrontmatterTable
Source§impl<'de> Deserialize<'de> for FrontmatterTable
impl<'de> Deserialize<'de> for FrontmatterTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrontmatterTable
impl PartialEq for FrontmatterTable
impl StructuralPartialEq for FrontmatterTable
Auto Trait Implementations§
impl Forget for FrontmatterTable
impl Freeze for FrontmatterTable
impl Move for FrontmatterTable
impl RefUnwindSafe for FrontmatterTable
impl Send for FrontmatterTable
impl Sync for FrontmatterTable
impl Unpin for FrontmatterTable
impl UnsafeUnpin for FrontmatterTable
impl UnwindSafe for FrontmatterTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.