pub struct Page {
pub prelude: String,
pub selectors: Vec<String>,
pub properties: Vec<Property>,
pub margin_boxes: Vec<MarginBoxDescription>,
pub margin_box_properties: Vec<Property>,
pub sizes: Vec<PageSize>,
pub counter_styles: Vec<String>,
}Expand description
The @page rule.
Fields§
§prelude: StringWhat follows @page, in value-definition syntax: a page name,
then any of the page selectors.
selectors: Vec<String>The page selectors, without their colon.
properties: Vec<Property>The properties a page body may declare.
margin_boxes: Vec<MarginBoxDescription>The margin boxes a page body may open.
margin_box_properties: Vec<Property>The properties a margin box declares on top of the style properties, which it also accepts.
sizes: Vec<PageSize>The named sheets size accepts, portrait.
counter_styles: Vec<String>The counter styles counter(page, ...) accepts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Page
impl<'de> Deserialize<'de> for Page
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
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.