pub struct PageDecorationStyle {
pub header: Option<HeaderFooterStyle>,
pub footer: Option<HeaderFooterStyle>,
pub banner: Option<NoticeBanner>,
pub skip_first_page: bool,
pub last_page_qr: Option<LastPageQr>,
}Expand description
Page-level header/footer decoration. Both are optional — by default no decoration is drawn, matching the previous behaviour.
Template strings support these variables:
{page}— current page number, 1-indexed{total}— total page count{title}— document title (set viaStyle::with_title()at runtime){chapter}— most recent h1 heading text on or before this page
Fields§
§header: Option<HeaderFooterStyle>Optional rich “banner” drawn at the top of every page above the
body — a taller masthead than the 3-slot header, for bulletin /
notice documents. Reserves its height so the body starts below
it. See NoticeBanner.
skip_first_page: boolIf true, the first page is rendered without header/footer (useful when the first page is a title or cover page).
last_page_qr: Option<LastPageQr>Optional QR-code stamp on the last content page — the printed-guide
pattern where production scans a small code (encoding the document
number) when packing. Drawn in the bottom-right corner above its
human-readable label. See LastPageQr.
Trait Implementations§
Source§impl Clone for PageDecorationStyle
impl Clone for PageDecorationStyle
Source§impl Debug for PageDecorationStyle
impl Debug for PageDecorationStyle
Source§impl Default for PageDecorationStyle
impl Default for PageDecorationStyle
Source§impl<'de> Deserialize<'de> for PageDecorationStylewhere
PageDecorationStyle: Default,
impl<'de> Deserialize<'de> for PageDecorationStylewhere
PageDecorationStyle: Default,
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
Auto Trait Implementations§
impl Forget for PageDecorationStyle
impl Freeze for PageDecorationStyle
impl Move for PageDecorationStyle
impl RefUnwindSafe for PageDecorationStyle
impl Send for PageDecorationStyle
impl Sync for PageDecorationStyle
impl Unpin for PageDecorationStyle
impl UnsafeUnpin for PageDecorationStyle
impl UnwindSafe for PageDecorationStyle
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.