pub struct PageRegion {
pub content: String,
pub y: String,
pub style: Option<String>,
}Expand description
Header or footer region.
Fields§
§content: StringContent template. Supports placeholders:
{pageNumber}- Current page number{totalPages}- Total page count
y: StringY position from top of page.
style: Option<String>Style name to apply.
Implementations§
Trait Implementations§
Source§impl Clone for PageRegion
impl Clone for PageRegion
Source§fn clone(&self) -> PageRegion
fn clone(&self) -> PageRegion
Returns a duplicate of the value. Read more
1.0.0 · 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 PageRegion
impl Debug for PageRegion
Source§impl<'de> Deserialize<'de> for PageRegion
impl<'de> Deserialize<'de> for PageRegion
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 PageRegion
impl PartialEq for PageRegion
Source§impl Serialize for PageRegion
impl Serialize for PageRegion
impl StructuralPartialEq for PageRegion
Auto Trait Implementations§
impl Freeze for PageRegion
impl RefUnwindSafe for PageRegion
impl Send for PageRegion
impl Sync for PageRegion
impl Unpin for PageRegion
impl UnsafeUnpin for PageRegion
impl UnwindSafe for PageRegion
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