pub enum LogoPosition {
Above,
BelowTitle,
}Expand description
Synthesised cover/title page placed before any body content. The
renderer pulls title / description / authors / date from
RenderContext (which the CLI populates from frontmatter), plus an
optional logo image. Disabled by default — most documents don’t
need a cover page.
Layout is centred vertically by the top_margin you pick; entries
stack with explicit gaps between them. Set subtitle to a template
string ({description}, {date}, etc.) when you want anything
below the title.
Where the optional logo / hero image sits in the cover-page stack.
Variants§
Above
At the top of the page, above the title. The default — fits the “letterhead + report title” pattern.
BelowTitle
Between the title and the subtitle. Use this when the front page leads with a big title and the image acts as a hero rather than a small mark.
Trait Implementations§
Source§impl Clone for LogoPosition
impl Clone for LogoPosition
impl Copy for LogoPosition
Source§impl Debug for LogoPosition
impl Debug for LogoPosition
Source§impl Default for LogoPosition
impl Default for LogoPosition
Source§impl<'de> Deserialize<'de> for LogoPosition
impl<'de> Deserialize<'de> for LogoPosition
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>,
Source§impl PartialEq for LogoPosition
impl PartialEq for LogoPosition
impl StructuralPartialEq for LogoPosition
Auto Trait Implementations§
impl Forget for LogoPosition
impl Freeze for LogoPosition
impl Move for LogoPosition
impl RefUnwindSafe for LogoPosition
impl Send for LogoPosition
impl Sync for LogoPosition
impl Unpin for LogoPosition
impl UnsafeUnpin for LogoPosition
impl UnwindSafe for LogoPosition
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
impl<T> Brush for T
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
T, using the provided data to resolve any offsets.